llvm-project/clang/lib
Leonard Chan fc40cbd9d8 [Attribute/Diagnostics] Print macro if definition is an attribute declaration
If an address_space attribute is defined in a macro, print the macro instead
when diagnosing a warning or error for incompatible pointers with different
address_spaces.

We allow this for all attributes (not just address_space), and for multiple
attributes declared in the same macro.

Differential Revision: https://reviews.llvm.org/D51329

llvm-svn: 359826
2019-05-02 20:38:14 +00:00
..
ARCMigrate [Attribute/Diagnostics] Print macro if definition is an attribute declaration 2019-05-02 20:38:14 +00:00
AST [Attribute/Diagnostics] Print macro if definition is an attribute declaration 2019-05-02 20:38:14 +00:00
ASTMatchers [ASTMatchers] Introduce Objective-C matchers `isClassMessage`, `isClassMethod`, and `isInstanceMethod` 2019-04-22 17:54:11 +00:00
Analysis [analyzer] Treat functions without run-time branches as "small". 2019-04-30 03:01:02 +00:00
Basic [COFF, ARM64] Align global symbol by size for ARM64 MSVC ABI 2019-05-02 00:38:14 +00:00
CodeGen [Attribute/Diagnostics] Print macro if definition is an attribute declaration 2019-05-02 20:38:14 +00:00
CrossTU [analyzer][CrossTU] Extend CTU to VarDecls with initializer 2019-04-23 11:04:41 +00:00
Driver [Driver] Support compiler-rt crtbegin.o/crtend.o for Linux 2019-04-30 19:35:14 +00:00
Edit Range-style std::find{,_if} -> llvm::find{,_if}. NFC 2019-03-31 08:48:19 +00:00
Format [clang-format] Fix a bug in AlignConsecutiveDeclarations. 2019-05-01 18:23:44 +00:00
Frontend [analyzer] Don't display implementation checkers under -analyzer-checker-help, but do under the new flag -analyzer-checker-help-hidden 2019-05-01 19:56:47 +00:00
FrontendTool [analyzer] Don't display implementation checkers under -analyzer-checker-help, but do under the new flag -analyzer-checker-help-hidden 2019-05-01 19:56:47 +00:00
Headers lib/Header: Fix Visual Studio builds try #2 2019-05-01 06:18:03 +00:00
Index Use llvm::stable_sort 2019-04-24 14:43:05 +00:00
Lex When skipping code at the start of a file during PCH use, Preprocessor::Lex 2019-04-29 21:21:17 +00:00
Parse [Attribute/Diagnostics] Print macro if definition is an attribute declaration 2019-05-02 20:38:14 +00:00
Rewrite Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Sema [Attribute/Diagnostics] Print macro if definition is an attribute declaration 2019-05-02 20:38:14 +00:00
Serialization [Attribute/Diagnostics] Print macro if definition is an attribute declaration 2019-05-02 20:38:14 +00:00
StaticAnalyzer [analyzer] Don't display implementation checkers under -analyzer-checker-help, but do under the new flag -analyzer-checker-help-hidden 2019-05-01 19:56:47 +00:00
Tooling [LibTooling] Change Transformer's TextGenerator to a partial function. 2019-04-30 16:48:33 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00