This revision adds a matcher isExpandedFromMacro that determines whether a
statement is (transitively) expanded from a given macro.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 45683 Build 47684: arc lint + arc unit
Event Timeline
clang/include/clang/ASTMatchers/ASTMatchers.h | ||
---|---|---|
312–316 | Please do not use auto when the type is not spelled out in the initialization. | |
clang/lib/ASTMatchers/ASTMatchersInternal.cpp | ||
611 | Same comments here about use of auto. | |
clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp | ||
128 | One test that's missing which is important are macros defined on the command line rather than defined in source, as those have expansion locations that are in the scratch buffer rather than a source file. Are you able to add such a test? |
Comment Actions
Aaron -- I missed your comments before submitting. I'll send a follow up with fixes. Thanks!
Please do not use auto when the type is not spelled out in the initialization.