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: unassignedclangb...@nondot.org
          Reporter: kyrylo.bohdane...@gmail.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to