[llvm-bugs] [Bug 40461] New: Preprocessor indentation in clang-format not well documented

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jan 25 03:47:09 PST 2019


            Bug ID: 40461
           Summary: Preprocessor indentation in clang-format not well
           Product: Documentation
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: General docs
          Assignee: unassignedbugs at nondot.org
          Reporter: rkasanmascheff at hotmail.com
                CC: llvm-bugs at lists.llvm.org

Current documentation of clang-format misses one detail for preprocessor

Written there is:

PPDIS_AfterHash (in configuration: AfterHash) Indents directives after the

The full description of semantics is written down in the implementing 


The following detail is missing in the documentation. Especially in which cases
a guard is detected.

Preprocessor indentation also attempts to ignore include guards with the

Include guards cover the entire file
Include guards don't have #else
Include guards begin with
#ifndef <var>
#define <var>


You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190125/1d0b0925/attachment.html>

More information about the llvm-bugs mailing list