https://bugs.llvm.org/show_bug.cgi?id=35145

            Bug ID: 35145
           Summary: Unstable indentation of comments within #ifdef with
                    IndentPPDirectives: AfterHash
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangb...@nondot.org
          Reporter: mikhail.matro...@gmail.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org

Format this code several times with -style="{IndentPPDirectives: AfterHash}":

#ifndef ASMINF
// comment
#  ifdef POSTINC
#  endif
#endif

See how indentation of the comment appears and disappears.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to