Lines Matching +defs:format +defs:message
27 #define DEBUG_TYPE "format-formatter"
29 using clang::format::FormatStyle;
862 "WebKit", "GNU", "Microsoft", "clang-format"};
1298 namespace format {
1314 return "clang-format.parse_error";
1317 std::string ParseErrorCategory::message(int EV) const {
1840 // - clang-format tries to detect that foo.h is the "main" header for
2028 else if (Name.equals_insensitive("clang-format"))
2442 // FIXME: handle error. For now, print error message and skip the
2517 .format(AnnotatedLines, /*DryRun=*/false,
2883 // FIXME: better error handling. for now just print error message and skip
3520 // MPEG transport streams use the ".ts" file extension. clang-format should
3521 // not attempt to format those. MPEG TS' frame format starts with 0x47 every
3969 " .clang-format file in one of the parent directories\n"
3971 " If no .clang-format file is found, falls back to\n"
3996 // https://protobuf.dev/reference/protobuf/textformat-spec/#text-format-files
4075 return make_string_error("Error parsing -style: " + ec.message());
4089 // User provided clang-format file using -style=file:path/to/format/file.
4098 EC.message());
4125 return make_string_error(EC.message());
4143 // Look for .clang-format/_clang-format file in the file's parent directories.
4145 FilesToLookFor.push_back(".clang-format");
4146 FilesToLookFor.push_back("_clang-format");
4175 EC.message());
4202 // .clang-format AND _clang-format, if both exist. Then we continue the
4225 if (Comment == (On ? "/* clang-format on */" : "/* clang-format off */"))
4228 static const char ClangFormatOn[] = "// clang-format on";
4229 static const char ClangFormatOff[] = "// clang-format off";
4244 } // namespace format