aboutsummaryrefslogtreecommitdiff
path: root/clang/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2022-04-08 19:54:35 -0400
committerAaron Ballman <aaron@aaronballman.com>2022-04-08 19:55:19 -0400
commitc8e1c94983421c934556bb3f0418fe654fc2a839 (patch)
treefa9fa6ef96dbe830dfbc5eb9b58683ca15744977 /clang/tools/c-index-test/c-index-test.c
parenta60e9b373f30ff1fc2af96cf6730d4ca461d1ba5 (diff)
downloadllvm-c8e1c94983421c934556bb3f0418fe654fc2a839.zip
llvm-c8e1c94983421c934556bb3f0418fe654fc2a839.tar.gz
llvm-c8e1c94983421c934556bb3f0418fe654fc2a839.tar.bz2
Add some function prototypes; NFC
(This file is compiled with -pedantic enabled in some two-stage builds)
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r--clang/tools/c-index-test/c-index-test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
index a32062c..7d0d6e8 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"