[all-commits] [llvm/llvm-project] 0dd49a: Use functions with prototypes when appropriate; NFC
Aaron Ballman via All-commits
all-commits at lists.llvm.org
Sat Feb 12 04:25:31 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0dd49a5628bbe01cecf6516017da59ae44863ab3
https://github.com/llvm/llvm-project/commit/0dd49a5628bbe01cecf6516017da59ae44863ab3
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2022-02-12 (Sat, 12 Feb 2022)
Changed paths:
M clang/test/Analysis/CFContainers-invalid.c
M clang/test/Analysis/CGColorSpace.c
M clang/test/Analysis/Checkers/RunLoopAutoreleaseLeakChecker.m
M clang/test/Analysis/DeallocUseAfterFreeErrors.m
M clang/test/Analysis/Inputs/ctu-other.c
M clang/test/Analysis/NSContainers.m
M clang/test/Analysis/NSString.m
M clang/test/Analysis/NSWindow.m
M clang/test/Analysis/NoReturn.m
M clang/test/Analysis/OSAtomic_mac.c
M clang/test/Analysis/UserNullabilityAnnotations.m
M clang/test/Analysis/_Bool-increment-decrement.c
M clang/test/Analysis/analyzer-display-progress.m
M clang/test/Analysis/analyzer-stats.c
M clang/test/Analysis/arc-zero-init.m
M clang/test/Analysis/array-struct-region.c
M clang/test/Analysis/array-struct-region.cpp
M clang/test/Analysis/array-struct.c
M clang/test/Analysis/assume-controlled-environment.c
M clang/test/Analysis/blocks-no-inline.c
M clang/test/Analysis/blocks-nrvo.c
M clang/test/Analysis/blocks.m
M clang/test/Analysis/bsd-string.c
M clang/test/Analysis/bstring.c
M clang/test/Analysis/bug_hash_test.m
M clang/test/Analysis/c11lock.c
M clang/test/Analysis/call-and-message.c
M clang/test/Analysis/call-and-message.m
M clang/test/Analysis/casts.c
M clang/test/Analysis/casts.m
M clang/test/Analysis/cert/env34-c.c
M clang/test/Analysis/cfg.c
M clang/test/Analysis/class-object-state-dump.m
M clang/test/Analysis/compound-literals.c
M clang/test/Analysis/concrete-address.c
M clang/test/Analysis/constant-folding.c
M clang/test/Analysis/constraint-assignor.c
M clang/test/Analysis/conversion-tracking-notes.c
M clang/test/Analysis/conversion.c
M clang/test/Analysis/copypaste/generic.c
M clang/test/Analysis/coverage.c
M clang/test/Analysis/crash-trace.c
M clang/test/Analysis/cstring-plist.c
M clang/test/Analysis/cstring-ranges.c
M clang/test/Analysis/cstring-syntax-weird2.c
M clang/test/Analysis/ctu-main.c
M clang/test/Analysis/dead-stores.c
M clang/test/Analysis/dead-stores.m
M clang/test/Analysis/debug-exprinspection-istainted.c
M clang/test/Analysis/default-analyze.m
M clang/test/Analysis/default-diagnostic-visitors.c
M clang/test/Analysis/designated-initializer-values.c
M clang/test/Analysis/designated-initializer.c
M clang/test/Analysis/diagnostics/Inputs/expected-sarif/sarif-multi-diagnostic-test.c.sarif
M clang/test/Analysis/diagnostics/deref-track-symbolic-region.c
M clang/test/Analysis/diagnostics/false-positive-suppression.c
M clang/test/Analysis/diagnostics/find_last_store.c
M clang/test/Analysis/diagnostics/macro-null-return-suppression.cpp
M clang/test/Analysis/diagnostics/no-prune-paths.c
M clang/test/Analysis/diagnostics/no-store-func-path-notes.c
M clang/test/Analysis/diagnostics/no-store-func-path-notes.m
M clang/test/Analysis/diagnostics/plist-multi-file.c
M clang/test/Analysis/diagnostics/sarif-multi-diagnostic-test.c
M clang/test/Analysis/diagnostics/shortest-path-suppression.c
M clang/test/Analysis/diagnostics/text-diagnostics.c
M clang/test/Analysis/diagnostics/undef-value-callee.h
M clang/test/Analysis/diagnostics/undef-value-param.c
M clang/test/Analysis/disable-all-checks.c
M clang/test/Analysis/dispatch-once.m
M clang/test/Analysis/domtest.c
M clang/test/Analysis/double-ranges-bug.c
M clang/test/Analysis/dump_egraph.c
M clang/test/Analysis/elementtype.c
M clang/test/Analysis/enum-cast-out-of-range.c
M clang/test/Analysis/equality_tracking.c
M clang/test/Analysis/exercise-ps.c
M clang/test/Analysis/explain-svals.m
M clang/test/PCH/decl-in-prototype.c
M clang/test/PCH/designated-init.c.h
M clang/test/PCH/different-diagnostic-level.c
M clang/test/PCH/different-linker-version.c
M clang/test/PCH/emit-dependencies.c
M clang/test/PCH/enum.c
M clang/test/PCH/exprs.c
M clang/test/PCH/externally-retained.m
M clang/test/PCH/field-designator.c
M clang/test/PCH/format-strings.c
M clang/test/PCH/multiple-include-pch.c
M clang/test/PCH/nonvisible-external-defs.h
M clang/test/PCH/objc_container.h
M clang/test/PCH/objc_import.m
M clang/test/PCH/objc_literals.m
M clang/test/PCH/objc_methods.m
M clang/test/PCH/objc_property.m
M clang/test/PCH/pch-dir.c
M clang/test/PCH/pragma-diag.c
M clang/test/PCH/pragma-optimize.c
M clang/test/PCH/rdar8852495.c
M clang/test/PCH/struct.c
M clang/test/PCH/subscripting-literals.m
M clang/test/PCH/typo.m
M clang/test/PCH/undefined-internal.c
M clang/test/Preprocessor/extension-warning.c
M clang/test/Preprocessor/macro_raw_string.cpp
M clang/test/Preprocessor/pragma_assume_nonnull.c
M clang/test/Preprocessor/pragma_microsoft.c
M clang/test/Preprocessor/user_defined_system_framework.c
M clang/test/Profile/c-captured.c
M clang/test/Profile/c-collision.c
M clang/test/Profile/c-general.c
M clang/test/Profile/c-outdated-data.c
M clang/test/Profile/c-unreachable-after-switch.c
M clang/test/Profile/coverage-prefix-map.c
M clang/test/Profile/gcc-flag-compatibility-aix.c
M clang/test/Profile/gcc-flag-compatibility.c
M clang/test/Refactor/Extract/ExtractionSemicolonPolicy.m
M clang/test/Rewriter/blockstruct.m
M clang/test/Rewriter/crash.m
M clang/test/Rewriter/finally.m
M clang/test/Rewriter/objc-synchronized-1.m
M clang/test/Rewriter/rewrite-captured-nested-bvar.c
M clang/test/Rewriter/rewrite-foreach-1.m
M clang/test/Rewriter/rewrite-foreach-2.m
M clang/test/Rewriter/rewrite-foreach-3.m
M clang/test/Rewriter/rewrite-foreach-4.m
M clang/test/Rewriter/rewrite-foreach-7.m
M clang/test/Rewriter/rewrite-modern-synchronized.m
M clang/test/Rewriter/rewrite-modern-throw.m
M clang/test/Rewriter/rewrite-modern-try-catch-finally.m
M clang/test/Rewriter/rewrite-modern-try-finally.m
M clang/test/Rewriter/rewrite-try-catch.m
M clang/test/Rewriter/rewrite-weak-attr.m
M clang/test/Rewriter/undef-field-reference-1.m
M clang/test/Rewriter/weak_byref_objects.m
M clang/test/VFS/framework-import.m
M clang/test/VFS/implicit-include.c
M clang/test/VFS/include-mixed-real-and-virtual.c
M clang/test/VFS/include-real-from-virtual.c
M clang/test/VFS/include-virtual-from-real.c
M clang/test/VFS/include.c
M clang/test/VFS/module-import.m
M clang/test/VFS/relative-path.c
M clang/test/VFS/vfsroot-with-overlay.c
M clang/test/utils/update_cc_test_checks/Inputs/check-globals.c
M clang/test/utils/update_cc_test_checks/Inputs/def-and-decl.c
M clang/test/utils/update_cc_test_checks/Inputs/def-and-decl.c.expected
M clang/test/utils/update_cc_test_checks/Inputs/generated-funcs-regex.c
M clang/test/utils/update_cc_test_checks/Inputs/generated-funcs-regex.c.expected
M clang/test/utils/update_cc_test_checks/Inputs/generated-funcs.c
M clang/test/utils/update_cc_test_checks/Inputs/generated-funcs.c.generated.expected
M clang/test/utils/update_cc_test_checks/Inputs/generated-funcs.c.no-generated.expected
M clang/test/utils/update_cc_test_checks/Inputs/global-hex-value-regex.c
M clang/test/utils/update_cc_test_checks/Inputs/global-hex-value-regex.c.expected
M clang/test/utils/update_cc_test_checks/Inputs/global-value-regex.c
M clang/test/utils/update_cc_test_checks/Inputs/global-value-regex.c.expected
M clang/test/utils/update_cc_test_checks/Inputs/on_the_fly_arg_change.c
M clang/test/utils/update_cc_test_checks/Inputs/on_the_fly_arg_change.c.expected
M clang/test/utils/update_cc_test_checks/check-globals.test
Log Message:
-----------
Use functions with prototypes when appropriate; NFC
A significant number of our tests in C accidentally use functions
without prototypes. This patch converts the function signatures to have
a prototype for the situations where the test is not specific to K&R C
declarations. e.g.,
void func();
becomes
void func(void);
This is the eighth batch of tests being updated (there are a
significant number of other tests left to be updated).
More information about the All-commits
mailing list