[PATCH] D129061: [Lex] Diagnose macro in command lines

Jack Huang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 10 10:07:10 PDT 2022


jackhong12 updated this revision to Diff 443516.
jackhong12 added a comment.

- modify option names
- only allow driver-defined macros used in cc1


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129061/new/

https://reviews.llvm.org/D129061

Files:
  clang-tools-extra/test/pp-trace/pp-trace-include.cpp
  clang/include/clang/Driver/Options.td
  clang/include/clang/Lex/PreprocessorOptions.h
  clang/lib/Driver/ToolChains/Clang.cpp
  clang/lib/Frontend/CompilerInvocation.cpp
  clang/lib/Frontend/InitPreprocessor.cpp
  clang/lib/Lex/PPDirectives.cpp
  clang/test/Driver/cl-runtime-flags.c
  clang/test/Driver/mingw.cpp
  clang/test/Preprocessor/macro-command-line-diagnosis.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129061.443516.patch
Type: text/x-patch
Size: 15627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220710/4172f5f7/attachment.bin>


More information about the cfe-commits mailing list