[llvm-bugs] [Bug 28107] New: clang-format doesn't have a way of specifying an absolute path to a .clang-format file

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jun 13 04:36:29 PDT 2016


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

            Bug ID: 28107
           Summary: clang-format doesn't have a way of specifying an
                    absolute path to a .clang-format file
           Product: clang
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ttanner2 at bloomberg.net
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org
    Classification: Unclassified

-style=string says

    Use -style=file to load style configuration from
    .clang-format file located in one of the parent
    directories of the source file (or current
    directory for stdin).

but this is not actually helpful if I have a common style file for multiple
projects which cannot be guaranteed to live underneath the same directory.


Using -assume-filename I can point at exactly the file I want to use, but
that's only good for stdin, and isn't so good for formatting in place.

-- 
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/20160613/ff3b2d95/attachment.html>


More information about the llvm-bugs mailing list