llvm-project/clang/docs
Birunthan Mohanathas b001a0ba5e clang-format: Add MacroBlock{Begin,End} options
The MacroBlockBegin and MacroBlockEnd options make matching macro identifiers
behave like '{' and '}', respectively, in terms of indentation.

Mozilla code, for example, uses several macros that begin and end a scope.
Previously, Clang-Format removed the indentation resulting in:

    MACRO_BEGIN(...)
    MACRO_ENTRY(...)
    MACRO_ENTRY(...)
    MACRO_END

Now, using the options

    MacroBlockBegin: "^[A-Z_]+_BEGIN$"
    MacroBlockEnd: "^[A-Z_]+_END$"

will yield the expected result:

    MACRO_BEGIN(...)
      MACRO_ENTRY(...)
      MACRO_ENTRY(...)
    MACRO_END

Differential Revision: http://reviews.llvm.org/D10840

llvm-svn: 241363
2015-07-03 17:25:16 +00:00
..
CommandGuide Sphinx-based clang man pages 2015-06-30 02:52:38 +00:00
analyzer
tools Sphinx-based clang man pages 2015-06-30 02:52:38 +00:00
AddressSanitizer.rst [docs] Several updates to the Address Sanitizer webpage. 2015-06-25 23:36:44 +00:00
AttributeReference.rst Adding a title to appease the sphinx build bot. 2015-06-23 17:31:30 +00:00
AutomaticReferenceCounting.rst Allow (Object *)kMyGlobalCFObj casts without bridging 2015-02-25 20:09:06 +00:00
Block-ABI-Apple.rst
Block-ABI-Apple.txt
BlockLanguageSpec.rst
CMakeLists.txt Sphinx-based clang man pages 2015-06-30 02:52:38 +00:00
ClangCheck.rst
ClangFormat.rst docs: remove double carriage-return 2014-11-02 21:27:52 +00:00
ClangFormatStyleOptions.rst clang-format: Add MacroBlock{Begin,End} options 2015-07-03 17:25:16 +00:00
ClangPlugins.rst
ClangTools.rst
ControlFlowIntegrity.rst [CFI] Require -flto instead of implying it. 2015-06-19 19:57:46 +00:00
ControlFlowIntegrityDesign.rst docs: Document byte arrays. 2015-03-12 00:30:41 +00:00
CrossCompilation.rst Fix typo in cross-compilation docs: "-fpu" -> "-mfpu" 2015-06-03 10:11:42 +00:00
DataFlowSanitizer.rst
DataFlowSanitizerDesign.rst
DriverArchitecture.png
DriverInternals.rst Driver: Replace a couple of out of date terms in the docs 2015-07-03 08:03:43 +00:00
ExternalClangExamples.rst
FAQ.rst
HowToSetupToolingForLLVM.rst
InternalsManual.rst Made considerable updates to the documentation explaining how to add a new attribute to clang. Cleans up some of the existing wording, as well as adding new information and better explanations. 2015-05-13 18:06:48 +00:00
IntroductionToTheClangAST.rst
JSONCompilationDatabase.rst
LanguageExtensions.rst Protection against stack-based memory corruption errors using SafeStack: Clang command line option and function attribute 2015-06-15 21:08:13 +00:00
LeakSanitizer.rst [docs] Several updates to the Address Sanitizer webpage. 2015-06-25 23:36:44 +00:00
LibASTMatchers.rst
LibASTMatchersReference.html Implement an AST matcher for C++ exception catch handlers that can catch any exception type (...). 2015-07-02 12:53:22 +00:00
LibASTMatchersTutorial.rst Fix typo in tutorial. 2015-06-02 22:40:27 +00:00
LibFormat.rst
LibTooling.rst
MSVCCompatibility.rst Fix some glitches in the MSVCCompatibility document 2015-05-07 07:48:16 +00:00
Makefile Sphinx-based clang man pages 2015-06-30 02:52:38 +00:00
Makefile.sphinx
MemorySanitizer.rst [msan] Change track-origins default mode from 1 to 2. 2015-02-26 15:59:30 +00:00
Modules.rst Fix "the the" in comments/documentation/etc. 2015-06-19 01:52:53 +00:00
ObjectiveCLiterals.rst Fix typo. NFC. 2015-06-27 19:04:55 +00:00
PCHInternals.rst Revert "Wrap clang module files in a Mach-O, ELF, or COFF container." 2015-02-25 02:44:04 +00:00
PCHLayout.graffle
PCHLayout.png
PTHInternals.rst PTHInternals.rst: PCH is now a thing, update docs to reflect it 2014-07-07 14:02:39 +00:00
RAVFrontendAction.rst Update the documentation for API change to CreateASTConsumer the rest of the way. 2014-10-22 23:57:14 +00:00
README.txt
ReleaseNotes.rst Fixing an RST issue to silence a sphinx warning. 2015-05-26 19:56:13 +00:00
SafeStack.rst docs: Fix bad link in SafeStack.rst. 2015-06-25 21:02:17 +00:00
SanitizerCoverage.rst Update docs for SanitizerCoverage. 2015-05-07 23:04:19 +00:00
SanitizerSpecialCaseList.rst Clean up language and grammar. 2014-05-20 17:10:39 +00:00
ThreadSafetyAnalysis.rst Updating the documentation to include an operator! for negative capability support. 2015-05-22 13:36:48 +00:00
ThreadSanitizer.rst [docs] Recommend to use CMake for building sanitizers. 2015-02-18 22:26:20 +00:00
Tooling.rst
UsersManual.rst [CFI] Require -flto instead of implying it. 2015-06-19 19:57:46 +00:00
conf.py Sphinx-based clang man pages 2015-06-30 02:52:38 +00:00
doxygen.cfg.in [docs] Update the doxygen configuration file. 2015-03-12 17:27:53 +00:00
doxygen.intro
index.rst Sphinx-based clang man pages 2015-06-30 02:52:38 +00:00
make.bat

README.txt

See llvm/docs/README.txt