llvm-project/clang/test/VFS/Inputs
Aaron Ballman 7068aa9841 Strengthen -Wint-conversion to default to an error
Clang has traditionally allowed C programs to implicitly convert
integers to pointers and pointers to integers, despite it not being
valid to do so except under special circumstances (like converting the
integer 0, which is the null pointer constant, to a pointer). In C89,
this would result in undefined behavior per 3.3.4, and in C99 this rule
was strengthened to be a constraint violation instead. Constraint
violations are most often handled as an error.

This patch changes the warning to default to an error in all C modes
(it is already an error in C++). This gives us better security posture
by calling out potential programmer mistakes in code but still allows
users who need this behavior to use -Wno-error=int-conversion to retain
the warning behavior, or -Wno-int-conversion to silence the diagnostic
entirely.

Differential Revision: https://reviews.llvm.org/D129881
2022-07-22 15:24:54 -04:00
..
Bar.framework
Broken.framework
Foo.framework
MissingVFS
Nonmodular
Foo.h
Incomplete.h
IncompleteVFS.h
actual_header.h
actual_module.map
actual_module2.map
bar-headers.yaml
external-names.h Strengthen -Wint-conversion to default to an error 2022-07-22 15:24:54 -04:00
import_some_frame.h
include_real.h
incomplete-umbrella.modulemap
invalid-yaml.yaml
missing-key.yaml
public_header.h
public_header2.h
public_header3.h
redirect-and-fallthrough.yaml [VFS] Add a "redirecting-with" field to overlays 2022-02-03 13:10:23 -08:00
some_frame_module.map
unknown-key.yaml
unknown-redirect.yaml [VFS] Add a "redirecting-with" field to overlays 2022-02-03 13:10:23 -08:00
unknown-value.yaml
use-external-names.yaml
vfsoverlay-directory-relative.yaml
vfsoverlay-directory.yaml
vfsoverlay-root-relative.yaml
vfsoverlay.yaml
vfsoverlay2.yaml
vfsroot.yaml