hanchenye-llvm-project/clang/unittests
Francois Ferrand c5227a1f53 [clang-format] Allow configuring list of function-like macros that resolve to a type
Summary:
Adds a `TypenameMacros` configuration option that causes certain identifiers to be handled in a way similar to `typeof()`.

This is enough to:
- Prevent misinterpreting declarations of pointers to such types as expressions (`STACK_OF(int) * foo` -> `STACK_OF(int) *foo`),
- Avoid surprising line breaks in variable/struct field declarations (`STACK_OF(int)\nfoo;` -> `STACK_OF(int) foo;`, see https://bugs.llvm.org/show_bug.cgi?id=30353).

Reviewers: Typz, krasimir, djasper

Reviewed By: Typz

Subscribers: cfe-commits

Tags: #clang

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

llvm-svn: 361986
2019-05-29 16:30:47 +00:00
..
AST [clang] Respect TerseOutput when printing lambdas 2019-05-27 16:20:45 +00:00
ASTMatchers Move TraversalKind enum to ast_type_traits 2019-05-16 17:57:38 +00:00
Analysis [analyzer] Treat functions without run-time branches as "small". 2019-04-30 03:01:02 +00:00
Basic [FileSystemStatCache] Update test for new FileSystemStatCache API 2019-04-16 18:00:43 +00:00
CodeGen Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CrossTU Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Driver [Driver] Support priority for multilibs 2019-04-27 00:25:11 +00:00
Format [clang-format] Allow configuring list of function-like macros that resolve to a type 2019-05-29 16:30:47 +00:00
Frontend [Preamble] Reuse preamble even if an unsaved file does not exist 2019-05-21 07:26:59 +00:00
Index [clang][Index] Fix msan failure 2019-03-08 10:18:40 +00:00
Lex [clang][HeaderSuggestion] Handle the case of dotdot with an absolute path 2019-04-24 09:23:31 +00:00
Rename Rename clangToolingRefactor to clangToolingRefactoring for consistency with its directory 2019-05-25 00:27:19 +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 [CodeComplete] Set preferred type for qualified-id 2019-05-28 15:21:03 +00:00
Serialization Stop relying on allocator behaviour in modules unit test 2019-03-09 20:15:01 +00:00
StaticAnalyzer [analyzer] Remove the default value arg from getChecker*Option 2019-05-17 15:52:13 +00:00
Tooling [LibTooling] Add `before` and `after` selectors for selecting point-ranges relative to nodes. 2019-05-29 12:40:36 +00:00
libclang Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CMakeLists.txt Modules: Rename MemoryBufferCache to InMemoryModuleCache 2019-03-09 17:33:56 +00:00