[PATCH] D116633: Add -fsanitize-address-param-retval to clang.

Kevin Athey via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 7 16:14:19 PST 2022


kda added inline comments.


================
Comment at: clang/include/clang/Driver/Options.td:1675
+      PosFlag<SetTrue, [CC1Option], "Enable">, NegFlag<SetFalse, [], "Disable">,
+      BothFlags<[], "Detect uninitialized parameters and return values.">>,
+    Group<f_clang_Group>;
----------------
kda wrote:
> kda wrote:
> > MaskRay wrote:
> > > MaskRay wrote:
> > > > `--help` messages don't have periods.
> > > Does --help message render clearly?
> > Indeed:
> > 
> > ```
> >   -fsanitize-memory-param-retval
> >                           EnableDetect uninitialized parameters and return values
> > ```
> Maybe not...
much better
```
  -fsanitize-memory-param-retval
                          Enable detection of uninitialized parameters and return values
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116633/new/

https://reviews.llvm.org/D116633



More information about the cfe-commits mailing list