Author: Aaron Ballman Date: 2022-04-08T19:55:19-04:00 New Revision: c8e1c94983421c934556bb3f0418fe654fc2a839
URL: https://github.com/llvm/llvm-project/commit/c8e1c94983421c934556bb3f0418fe654fc2a839 DIFF: https://github.com/llvm/llvm-project/commit/c8e1c94983421c934556bb3f0418fe654fc2a839.diff LOG: Add some function prototypes; NFC (This file is compiled with -pedantic enabled in some two-stage builds) Added: Modified: clang/tools/c-index-test/c-index-test.c Removed: ################################################################################ diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c index a32062caf8897..7d0d6e8e6e2f7 100644 --- a/clang/tools/c-index-test/c-index-test.c +++ b/clang/tools/c-index-test/c-index-test.c @@ -66,7 +66,7 @@ extern char *dirname(char *); #endif /** Return the default parsing options. */ -static unsigned getDefaultParsingOptions() { +static unsigned getDefaultParsingOptions(void) { unsigned options = CXTranslationUnit_DetailedPreprocessingRecord; if (getenv("CINDEXTEST_EDITING")) @@ -3316,7 +3316,7 @@ typedef struct { unsigned num_files; } ImportedASTFilesData; -static ImportedASTFilesData *importedASTs_create() { +static ImportedASTFilesData *importedASTs_create(void) { ImportedASTFilesData *p; p = malloc(sizeof(ImportedASTFilesData)); assert(p); @@ -4407,7 +4407,7 @@ static void print_usr(CXString usr) { clang_disposeString(usr); } -static void display_usrs() { +static void display_usrs(void) { fprintf(stderr, "-print-usrs options:\n" " ObjCCategory <class name> <category name>\n" " ObjCClass <class name>\n" _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits