[llvm-bugs] [Bug 42916] New: [clang-format] Possibility to narrow list of languages to guess from

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 7 06:40:22 PDT 2019


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

            Bug ID: 42916
           Summary: [clang-format] Possibility to narrow list of languages
                    to guess from
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: kyrylo.bohdanenko at gmail.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

So the idea is to have possibility to help clang-format with guessing language
of a file by narrowing possible options list.

For example, if a project (a directory) contains .clang-format and -style=file
was selected, then limit options only to the languages described in that file.
This could help in cases like 37433, 39216: if there is no configuration for
ObjC, then do not consider ObjC.

Other option would be to have an option in the configuration file and CLI to
explicitly define a set of languages to choose from. This is pretty similar to
what was proposed in 36468.

-- 
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/20190807/b7fb4d8f/attachment.html>


More information about the llvm-bugs mailing list