llvm-project/clang/lib
Chuanqi Xu 8b48d24373 [clang-format] Recognize c++ coroutine keywords as unary operator to avoid misleading pointer alignment
Summary: The clang-format may go wrong when handle c++ coroutine keywords and pointer.
The default value for PointerAlignment is PAS_Right. So the following format is good:
```
co_return *a;
```
But within some code style, the value for PointerAlignment is PAS_Left, the behavior goes wrong:
```
co_return* a;
```

test-plan: check-clang

reviewers: MyDeveloperDay

Differential Revision: https://reviews.llvm.org/D91245
2020-12-15 20:50:46 +08:00
..
APINotes APINotes: add bitcode format schema definitions 2020-12-08 21:15:41 +00:00
ARCMigrate ARCMigrate: Migrate ObjCMT.cpp over to FileEntryRef 2020-12-09 14:16:05 -08:00
AST [ASTImporter] Fix import of a typedef that has an attribute 2020-12-14 18:27:05 +01:00
ASTMatchers Remove references to the ast_type_traits namespace 2020-12-11 00:58:46 +01:00
Analysis Revert "[analyzer] NFC: Move path diagnostic consumer implementations to libAnalysis." 2020-12-11 10:16:13 +01:00
Basic [NFC][AMDGPU] Reformat AMD GPU targets in cuda.cpp 2020-12-13 23:02:59 +00:00
CodeGen [clang][cli] Create accessors for exception models in LangOptions 2020-12-15 10:15:58 +01:00
CrossTU Revert "[analyzer] NFC: Move path diagnostic consumer implementations to libAnalysis." 2020-12-11 10:16:13 +01:00
DirectoryWatcher Revert "ADT: Migrate users of AlignedCharArrayUnion to std::aligned_union_t, NFC" 2020-12-14 17:04:06 -08:00
Driver [clang][cli] Squash multiple cc1 -fxxx-exceptions flags into single -exception-model=xxx option 2020-12-15 10:15:58 +01:00
Edit [clang] Use SourceLocation as key in hash maps, NFCI 2020-10-20 16:24:09 +01:00
Format [clang-format] Recognize c++ coroutine keywords as unary operator to avoid misleading pointer alignment 2020-12-15 20:50:46 +08:00
Frontend [clang][cli] Squash multiple cc1 -fxxx-exceptions flags into single -exception-model=xxx option 2020-12-15 10:15:58 +01:00
FrontendTool [NFC] Refactor Registry loops to range for 2020-06-19 00:40:10 +01:00
Headers [X86] Convert fadd/fmul _mm_reduce_* intrinsics to emit llvm.reduction intrinsics (PR47506) 2020-12-13 15:37:35 +00:00
Index Index: Remove unused internal header SimpleFormatContext.h, NFC 2020-12-04 15:10:27 -08:00
IndexSerialization [index-while-building] Fix build with -DBUILD_SHARED_LIBS=True 2020-08-20 15:12:56 +01:00
Lex Revert "Lex: Migrate HeaderSearch::LoadedModuleMaps to FileEntryRef" 2020-12-14 22:05:08 -05:00
Parse Fix inconsistent availability attribute message string literal check. 2020-12-08 12:33:59 -05:00
Rewrite SourceManager: Clarify that FileInfo always has a ContentCache, NFC 2020-10-23 12:38:53 -04:00
Sema [clang][IR] Add support for leaf attribute 2020-12-14 14:48:17 -08:00
Serialization Revert "[openmp] Remove clause from OMPKinds.def and use OMP.td info" 2020-12-10 10:34:59 -05:00
StaticAnalyzer Revert "[DDG] Data Dependence Graph - DOT printer" 2020-12-14 16:54:20 -05:00
Testing Fix MSVC "not all control paths return a value" warning. NFC. 2020-06-05 10:45:59 +01:00
Tooling Remove references to the ast_type_traits namespace 2020-12-11 00:58:46 +01:00
CMakeLists.txt APINotes: add APINotesYAMLCompiler 2020-11-05 18:55:13 +00:00