Author: Owen Pan Date: 2023-01-22T02:59:23-08:00 New Revision: a0dab49508e377bdf1ad7af314e16a8a037bc589
URL: https://github.com/llvm/llvm-project/commit/a0dab49508e377bdf1ad7af314e16a8a037bc589 DIFF: https://github.com/llvm/llvm-project/commit/a0dab49508e377bdf1ad7af314e16a8a037bc589.diff LOG: [clang-format][NFC] Add .clang-format to clang/tools/clang-format/ And reformat ClangFormat.cpp in the directory. Added: clang/tools/clang-format/.clang-format Modified: clang/tools/clang-format/ClangFormat.cpp Removed: ################################################################################ diff --git a/clang/tools/clang-format/.clang-format b/clang/tools/clang-format/.clang-format new file mode 100644 index 0000000000000..60f4950c01a59 --- /dev/null +++ b/clang/tools/clang-format/.clang-format @@ -0,0 +1,4 @@ +BasedOnStyle: LLVM +InsertBraces: true +LineEnding: LF +RemoveBracesLLVM: true diff --git a/clang/tools/clang-format/ClangFormat.cpp b/clang/tools/clang-format/ClangFormat.cpp index 9e8b881c8fafe..dab8a7f2f8c57 100644 --- a/clang/tools/clang-format/ClangFormat.cpp +++ b/clang/tools/clang-format/ClangFormat.cpp @@ -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"), _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits