llvm-project/clang/lib/Format
Björn Schäpers c5243c63cd [clang-format] Fix aligning with linebreaks
Breaking a string literal or a function calls arguments with
AlignConsecutiveDeclarations or AlignConsecutiveAssignments did misalign
the continued line. E.g.:

void foo() {
  int myVar = 5;
  double x  = 3.14;
  auto str  = "Hello"
            "World";
}

or

void foo() {
  int    myVar = 5;
  double x = 3.14;
  auto   str = "Hello"
             "World";
}

Differential Revision: https://reviews.llvm.org/D98214
2021-03-28 16:26:27 +02:00
..
AffectedRangeManager.cpp
AffectedRangeManager.h
BreakableToken.cpp [clang-format] Fix MSVC "unsafe use of type 'bool' in operation" warning (NFC) 2021-02-03 10:50:59 +08:00
BreakableToken.h [clang-format] Add option to control the spaces in a line comment 2021-02-01 22:48:50 +01:00
CMakeLists.txt [clang-format] Add a MacroExpander. 2020-09-25 14:08:13 +02:00
ContinuationIndenter.cpp clang-format: use `pb` as a canonical raw string delimiter for google style 2021-03-09 09:07:14 +01:00
ContinuationIndenter.h [clang-format] Fix AlignOperands when BreakBeforeBinaryOperators is set 2020-05-15 16:40:31 +02:00
Encoding.h [clang-format][PR41964] Fix crash with SIGFPE when TabWidth is set to 0 and line starts with tab 2019-09-18 18:57:09 +00:00
Format.cpp clang-format: use `pb` as a canonical raw string delimiter for google style 2021-03-09 09:07:14 +01:00
FormatInternal.h Move clang/Tooling/Core/Lookup.h to clang/Tooling/Refactoring/Lookup.h 2020-10-20 10:13:28 +01:00
FormatToken.cpp [clang-format] Fix formatting of _Atomic() qualifier 2020-09-07 10:09:18 +01:00
FormatToken.h [clang-format] Add StatementAttributeLikeMacros option 2021-01-18 06:54:31 +01:00
FormatTokenLexer.cpp [clang-format] Add StatementAttributeLikeMacros option 2021-01-18 06:54:31 +01:00
FormatTokenLexer.h Hand Allocator and IdentifierTable into FormatTokenLexer. 2020-07-07 11:56:34 +02:00
MacroExpander.cpp clang/Frontend: Use MemoryBufferRef in FrontendInputFile (and remove SourceManager::getBuffer) 2020-10-20 13:35:46 -04:00
Macros.h [clang-format] Add a MacroExpander. 2020-09-25 14:08:13 +02:00
NamespaceEndCommentsFixer.cpp [clang-format][PR47290] Add ShortNamespaceLines format option 2021-03-01 21:28:14 +01:00
NamespaceEndCommentsFixer.h
SortJavaScriptImports.cpp [ADT/STLExtras.h] - Add llvm::is_sorted wrapper and update callers. 2020-04-14 14:11:02 +03:00
SortJavaScriptImports.h
TokenAnalyzer.cpp Hand Allocator and IdentifierTable into FormatTokenLexer. 2020-07-07 11:56:34 +02:00
TokenAnalyzer.h [clang-format] Remove unused Environment constructor. 2019-04-18 00:36:51 +00:00
TokenAnnotator.cpp [clang-format] Add StatementAttributeLikeMacros option 2021-01-18 06:54:31 +01:00
TokenAnnotator.h clang-format clang/lib/Format 2019-07-29 13:26:48 +00:00
UnwrappedLineFormatter.cpp [clang-format] Rework Whitesmiths mode to use line-level values in UnwrappedLineParser 2021-03-05 21:42:46 +01:00
UnwrappedLineFormatter.h [clang-format] [NFC] clang-format the Format library 2019-03-01 09:09:54 +00:00
UnwrappedLineParser.cpp [clang-format] Fix ObjC method indent after f7f9f94b 2021-03-25 10:52:08 +01:00
UnwrappedLineParser.h [clang-format] Rework Whitesmiths mode to use line-level values in UnwrappedLineParser 2021-03-05 21:42:46 +01:00
UsingDeclarationsSorter.cpp Use llvm::stable_sort 2019-04-24 14:43:05 +00:00
UsingDeclarationsSorter.h
WhitespaceManager.cpp [clang-format] Fix aligning with linebreaks 2021-03-28 16:26:27 +02:00
WhitespaceManager.h [clang-format][PR45816] Add AlignConsecutiveBitFields 2020-05-20 07:42:58 +01:00