Files
Nim/compiler
quantimnot 800cb006e7 Change styleCheck to ignore foreign packages (#19822)
* Change `styleCheck` to ignore foreign packages

* Symbols from foreign packages are now ignored.
* Fixed `styleCheck` violations in `compiler` package.
* Added symbol ownership to custom annotation pragmas.
* Minor refactors to cleanup style check callsites.
* Minor internal documentation of reasons why a symbol isn't checked.

Style violations were fixed in the compiler after thet were exposed by
the changes. The compiler wouldn't compile otherwise.

Symbol ownership for custom pragma annotations is needed for checking
the annotation's style. A NPE was raised otherwise.

Fixes #10201
See also nim-lang/RFCs#456

* Fix a misunderstanding about excluding field style checks

I had refactored the callsites of `styleCheckUse` to apply the DRY
principle, but I misunderstood the field access handling in a template
as a general case. This corrects it.

* Fix some `styleCheck` violations in `compiler/evalffi`

The violations were exposed in CI when the compiler was built with
libffi.

* Removed some uneeded transitionary code

* Add changelog entry

Co-authored-by: quantimnot <quantimnot@users.noreply.github.com>
2022-07-14 14:20:40 +02:00
..
2021-01-07 20:26:40 +01:00
2022-03-20 14:02:44 +01:00
2021-03-19 16:53:38 +01:00
2022-06-10 20:32:27 +02:00
2022-06-10 20:32:27 +02:00
2021-11-02 16:30:59 +01:00
2017-01-07 22:35:09 +01:00
2022-03-23 20:34:53 +01:00
2022-06-04 07:03:03 +02:00
2022-07-13 20:55:33 +08:00
2019-11-28 17:13:04 +01:00
2022-03-23 20:34:53 +01:00
2021-05-20 15:48:46 +02:00
2021-01-12 09:36:51 +01:00
2022-03-23 20:34:53 +01:00
2022-03-23 20:34:53 +01:00
2019-09-27 07:02:54 +02:00
2022-01-04 11:10:46 +01:00
2021-01-07 20:26:40 +01:00
2021-04-07 19:54:28 +02:00
2020-11-10 21:53:25 +01:00

Nim Compiler

  • This directory contains the Nim compiler written in Nim.
  • Note that this code has been translated from a bootstrapping version written in Pascal.
  • So the code is not a poster child of good Nim code.

See Internals of the Nim Compiler for more information.