Author: NAKAMURA Takumi Date: 2023-09-26T12:29:21+09:00 New Revision: c84f9f9a81e496acbef0855cbbb0858c817576dc
URL: https://github.com/llvm/llvm-project/commit/c84f9f9a81e496acbef0855cbbb0858c817576dc DIFF: https://github.com/llvm/llvm-project/commit/c84f9f9a81e496acbef0855cbbb0858c817576dc.diff LOG: Reformat Added: Modified: clang/utils/TableGen/ClangAttrEmitter.cpp clang/utils/TableGen/ClangCommentCommandInfoEmitter.cpp clang/utils/TableGen/ClangCommentHTMLNamedCharacterReferenceEmitter.cpp clang/utils/TableGen/ClangCommentHTMLTagsEmitter.cpp llvm/lib/TableGen/TableGenBackend.cpp Removed: ################################################################################ diff --git a/clang/utils/TableGen/ClangAttrEmitter.cpp b/clang/utils/TableGen/ClangAttrEmitter.cpp index 7ea09058c3d39f2..00bcbe1153518c8 100644 --- a/clang/utils/TableGen/ClangAttrEmitter.cpp +++ b/clang/utils/TableGen/ClangAttrEmitter.cpp @@ -3587,7 +3587,8 @@ void EmitClangAttrHasAttrImpl(RecordKeeper &Records, raw_ostream &OS) { void EmitClangAttrSpellingListIndex(RecordKeeper &Records, raw_ostream &OS) { emitSourceFileHeader("Code to translate diff erent attribute spellings " - "into internal identifiers", OS); + "into internal identifiers", + OS); OS << " switch (getParsedKind()) {\n"; OS << " case IgnoredAttribute:\n"; @@ -4680,8 +4681,7 @@ void EmitClangAttrNodeTraverse(RecordKeeper &Records, raw_ostream &OS) { } } -void EmitClangAttrParserStringSwitches(RecordKeeper &Records, - raw_ostream &OS) { +void EmitClangAttrParserStringSwitches(RecordKeeper &Records, raw_ostream &OS) { emitSourceFileHeader("Parser-related llvm::StringSwitch cases", OS); emitClangAttrArgContextList(Records, OS); emitClangAttrIdentifierArgList(Records, OS); diff --git a/clang/utils/TableGen/ClangCommentCommandInfoEmitter.cpp b/clang/utils/TableGen/ClangCommentCommandInfoEmitter.cpp index a988a5631acabce..a70e95408c89292 100644 --- a/clang/utils/TableGen/ClangCommentCommandInfoEmitter.cpp +++ b/clang/utils/TableGen/ClangCommentCommandInfoEmitter.cpp @@ -20,9 +20,11 @@ using namespace llvm; -void clang::EmitClangCommentCommandInfo(RecordKeeper &Records, raw_ostream &OS) { +void clang::EmitClangCommentCommandInfo(RecordKeeper &Records, + raw_ostream &OS) { emitSourceFileHeader("A list of commands useable in documentation " - "comments", OS); + "comments", + OS); OS << "namespace {\n" "const CommandInfo Commands[] = {\n"; @@ -112,9 +114,11 @@ static std::string MangleName(StringRef Str) { return Mangled; } -void clang::EmitClangCommentCommandList(RecordKeeper &Records, raw_ostream &OS) { +void clang::EmitClangCommentCommandList(RecordKeeper &Records, + raw_ostream &OS) { emitSourceFileHeader("A list of commands useable in documentation " - "comments", OS); + "comments", + OS); OS << "#ifndef COMMENT_COMMAND\n" << "# define COMMENT_COMMAND(NAME)\n" diff --git a/clang/utils/TableGen/ClangCommentHTMLNamedCharacterReferenceEmitter.cpp b/clang/utils/TableGen/ClangCommentHTMLNamedCharacterReferenceEmitter.cpp index 15671a99a3fc217..04c6275304795ad 100644 --- a/clang/utils/TableGen/ClangCommentHTMLNamedCharacterReferenceEmitter.cpp +++ b/clang/utils/TableGen/ClangCommentHTMLNamedCharacterReferenceEmitter.cpp @@ -71,7 +71,8 @@ void clang::EmitClangCommentHTMLNamedCharacterReferences(RecordKeeper &Records, } emitSourceFileHeader("HTML named character reference to UTF-8 " - "translation", OS); + "translation", + OS); OS << "StringRef translateHTMLNamedCharacterReferenceToUTF8(\n" " StringRef Name) {\n"; diff --git a/clang/utils/TableGen/ClangCommentHTMLTagsEmitter.cpp b/clang/utils/TableGen/ClangCommentHTMLTagsEmitter.cpp index 78bbbd1cba57668..a3a124f10f76e8a 100644 --- a/clang/utils/TableGen/ClangCommentHTMLTagsEmitter.cpp +++ b/clang/utils/TableGen/ClangCommentHTMLTagsEmitter.cpp @@ -61,4 +61,3 @@ void clang::EmitClangCommentHTMLTagsProperties(RecordKeeper &Records, OS << " return false;\n" << "}\n\n"; } - diff --git a/llvm/lib/TableGen/TableGenBackend.cpp b/llvm/lib/TableGen/TableGenBackend.cpp index 135ec643bc3a7df..705c3a17a765750 100644 --- a/llvm/lib/TableGen/TableGenBackend.cpp +++ b/llvm/lib/TableGen/TableGenBackend.cpp @@ -55,7 +55,7 @@ void llvm::emitSourceFileHeader(StringRef Desc, raw_ostream &OS) { } while (Pos < Desc.size()); printLine(OS, Prefix, ' ', Suffix); printLine(OS, Prefix + "Automatically generated file, do not edit!", ' ', - Suffix); + Suffix); printLine(OS, Prefix, ' ', Suffix); printLine(OS, "\\*===", '-', "===*/"); OS << '\n'; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits