llvm-project/clang/lib/Format
Sam McCall 6f3778c372 clang-format: Fix formatting C++ namespaces with preceding 'inline' or 'export' specifier
This fixes formatting namespaces with preceding 'inline' and 'export' (Modules TS) specifiers.

This change fixes namespaces not being identified as such with preceding 'inline' or 'export' specifiers.

Motivation: I was experimenting with the Modules TS (-fmodules-ts) and found it would be useful if clang-format would correctly format 'export namespace'. While making the changes, I noticed that similar issues still exist with 'inline namespace', and addressed them as well.

Patch by Marco Elver!

Reviewers: klimek, djasper, owenpan, sammccall

Reviewed By: owenpan, sammccall

Subscribers: owenpan, cfe-commits

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

llvm-svn: 341450
2018-09-05 07:44:02 +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: [JS] don't break comments before any '{' 2018-08-03 13:58:33 +00:00
BreakableToken.h [clang-format] Silence -Wdocumentation warnings 2018-07-30 12:22:41 +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] fix PR38525 - Extraneous continuation indent spaces with BreakBeforeBinaryOperators set to All 2018-08-24 17:14:31 +00:00
ContinuationIndenter.h Remove trailing space 2018-07-30 19:24:48 +00:00
Encoding.h NFC: Add the emacs c++ mode hint "-*- C++ -*-" to the headers that don't have it 2018-07-24 00:07:49 +00:00
Format.cpp clang-format: Fix formatting C++ namespaces with preceding 'inline' or 'export' specifier 2018-09-05 07:44:02 +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 clang-format: Fix formatting C++ namespaces with preceding 'inline' or 'export' specifier 2018-09-05 07:44:02 +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 clang-format: Fix formatting C++ namespaces with preceding 'inline' or 'export' specifier 2018-09-05 07:44:02 +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/ObjC] Improve split priorities for ObjC methods 2018-07-09 06:54:52 +00:00
TokenAnnotator.h clang-format: Fix formatting C++ namespaces with preceding 'inline' or 'export' specifier 2018-09-05 07:44:02 +00:00
UnwrappedLineFormatter.cpp clang-format: Fix formatting C++ namespaces with preceding 'inline' or 'export' specifier 2018-09-05 07:44:02 +00:00
UnwrappedLineFormatter.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
UnwrappedLineParser.cpp clang-format: Fix formatting C++ namespaces with preceding 'inline' or 'export' specifier 2018-09-05 07:44:02 +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 [Format] Fix for bug 35641 2018-08-01 15:32:56 +00:00
WhitespaceManager.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00