llvm-project/clang/lib/Format
David L. Jones 5de2272174 [Format] Do not use a global static value for EOF within ScopedMacroState.
ScopedMacroState injects its own EOF token under certain conditions, and the
returned token may be modified in several different locations. If multiple
reformat operations are started in different threads, then they will both see
the same fake EOF token, and may both try to modify it. This is a data race.

This bug was caught with tsan.

Reviewers: klimek

Subscribers: cfe-commits

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

llvm-svn: 334801
2018-06-15 06:08:54 +00:00
..
AffectedRangeManager.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
AffectedRangeManager.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
BreakableToken.cpp [clang-format] Fix crash while reflowing backslash in comments 2018-06-12 19:33:15 +00:00
BreakableToken.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CMakeLists.txt Reland "Move #include manipulation code to new lib/Tooling/Inclusions." 2018-06-04 09:04:12 +00:00
ContinuationIndenter.cpp clang-format: Introduce BreakInheritanceList option 2018-06-11 14:41:26 +00:00
ContinuationIndenter.h [clang-format] Respect BreakBeforeClosingBrace while calculating length 2018-05-09 09:02:11 +00:00
Encoding.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
Format.cpp [clang-format] Disable AlwaysBreakBeforeMultilineStrings in Google style for Objective-C 📜 2018-06-14 17:30:10 +00:00
FormatInternal.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
FormatToken.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
FormatToken.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
FormatTokenLexer.cpp [clang-format] Consider tok::hashhash in python-style comments 2018-06-07 09:46:24 +00:00
FormatTokenLexer.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
NamespaceEndCommentsFixer.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
NamespaceEndCommentsFixer.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
SortJavaScriptImports.cpp [clang] Update uses of DEBUG macro to LLVM_DEBUG. 2018-05-15 13:30:56 +00:00
SortJavaScriptImports.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
TokenAnalyzer.cpp [clang] Update uses of DEBUG macro to LLVM_DEBUG. 2018-05-15 13:30:56 +00:00
TokenAnalyzer.h Add SourceManagerForFile helper which sets up SourceManager and dependencies for a single file with code snippet 2018-05-09 21:35:52 +00:00
TokenAnnotator.cpp [clang-format] Add SpaceBeforeCpp11BracedList option. 2018-06-14 08:01:09 +00:00
TokenAnnotator.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
UnwrappedLineFormatter.cpp [clang] Update uses of DEBUG macro to LLVM_DEBUG. 2018-05-15 13:30:56 +00:00
UnwrappedLineFormatter.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
UnwrappedLineParser.cpp [Format] Do not use a global static value for EOF within ScopedMacroState. 2018-06-15 06:08:54 +00:00
UnwrappedLineParser.h [clang-format/ObjC] Correctly parse Objective-C methods with 'class' in name 2018-05-30 15:21:38 +00:00
UsingDeclarationsSorter.cpp [clang] Update uses of DEBUG macro to LLVM_DEBUG. 2018-05-15 13:30:56 +00:00
UsingDeclarationsSorter.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
WhitespaceManager.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
WhitespaceManager.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00