In MASM, the ifdef family of directives treats its argument literally, without expanding it as a text macro. Add support for this, and also replace the special handling that was previously used for echo.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
Nice! lg with clang-tidy addressed.
llvm/lib/MC/MCParser/MasmParser.cpp | ||
---|---|---|
494 | nit: Consider instead: enum ExpandKind { ExpandMacros, DoNotExpandMacros }; const AsmToken &Lex(ExpandKind); Then the call sites are much easier to read. (Also something similar for the other method below taking a bool below) | |
1120 | Why is this a pointer? You never set it to anything else and it can't be null -- make it a reference? | |
1136 | no else after return…oh, clang-tidy already said that. Do what clang-tidy says :) (also above) |
nit: Consider instead:
Then the call sites are much easier to read. (Also something similar for the other method below taking a bool below)