Skip to content

Commit

Permalink
[clang-format][NFC] Add .clang-format to clang/tools/clang-format/
Browse files Browse the repository at this point in the history
And reformat ClangFormat.cpp in the directory.
  • Loading branch information
owenca committed Jan 22, 2023
1 parent dadfc6b commit a0dab49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions clang/tools/clang-format/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
BasedOnStyle: LLVM
InsertBraces: true
LineEnding: LF
RemoveBracesLLVM: true
3 changes: 1 addition & 2 deletions clang/tools/clang-format/ClangFormat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ static cl::opt<std::string> QualifierAlignment(
static cl::opt<std::string> Files(
"files",
cl::desc("A file containing a list of files to process, one per line."),
cl::value_desc("filename"),
cl::init(""), cl::cat(ClangFormatCategory));
cl::value_desc("filename"), cl::init(""), cl::cat(ClangFormatCategory));

static cl::opt<bool>
Verbose("verbose", cl::desc("If set, shows the list of processed files"),
Expand Down

0 comments on commit a0dab49

Please sign in to comment.