Skip to content

Commit b061d3b

Browse files
Reenable external categories (llvm#87357)
Reenables b31414b. Also adds a new warning for missing `--symbol-graph-dir` arg when `--emit-extension-symbol-graphs` is provided. This also reverts the commit that removed.
1 parent 2ab6927 commit b061d3b

File tree

78 files changed

+3852
-8531
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+3852
-8531
lines changed

clang/include/clang/Basic/DiagnosticDriverKinds.td

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,12 @@ def err_drv_extract_api_wrong_kind : Error<
521521
"header file '%0' input '%1' does not match the type of prior input "
522522
"in api extraction; use '-x %2' to override">;
523523

524+
def err_drv_missing_symbol_graph_dir: Error<
525+
"Must provide a symbol graph output directory using --symbol-graph-dir=<directory>">;
526+
527+
def err_drv_unexpected_symbol_graph_output : Error<
528+
"Unexpected output symbol graph '%1'; please provide --symbol-graph-dir=<directory> instead">;
529+
524530
def warn_slash_u_filename : Warning<"'/U%0' treated as the '/U' option">,
525531
InGroup<DiagGroup<"slash-u-filename">>;
526532
def note_use_dashdash : Note<

clang/include/clang/Basic/DiagnosticFrontendKinds.td

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,4 +360,8 @@ def warn_profile_data_misexpect : Warning<
360360
def err_extract_api_ignores_file_not_found :
361361
Error<"file '%0' specified by '--extract-api-ignores=' not found">, DefaultFatal;
362362

363+
def warn_missing_symbol_graph_dir : Warning<
364+
"Missing symbol graph output directory, defaulting to working directory">,
365+
InGroup<ExtractAPIMisuse>;
366+
363367
}

clang/include/clang/Basic/DiagnosticGroups.td

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,3 +1455,6 @@ def ReadOnlyPlacementChecks : DiagGroup<"read-only-types">;
14551455
// Warnings and fixes to support the "safe buffers" programming model.
14561456
def UnsafeBufferUsageInContainer : DiagGroup<"unsafe-buffer-usage-in-container">;
14571457
def UnsafeBufferUsage : DiagGroup<"unsafe-buffer-usage", [UnsafeBufferUsageInContainer]>;
1458+
1459+
// Warnings about misuse of ExtractAPI options.
1460+
def ExtractAPIMisuse : DiagGroup<"extractapi-misuse">;

0 commit comments

Comments
 (0)