vitalybuka added inline comments.

================
Comment at: clang/docs/AddressSanitizer.rst:18
+* Use-after-return (clang flag 
`-fsanitize-address-use-after-return=(always|runtime|never)` default: runtime)
+  * Add runtime flag `ASAN_OPTIONS=detect_stack_use_after_return=1` to enable 
when compiled with `-fsanitize-address-use-after-return=runtime`)
 * Use-after-scope (clang flag `-fsanitize-address-use-after-scope`)
----------------
Please check that this is formatted reasonable in preview.


================
Comment at: clang/docs/ClangCommandLineReference.rst:889
+Valid options are:
+* ``always`` - Always detect use-after-return.  (Code generated and always 
enabled.)
+* ``runtime`` - Detect use-after-return at runtime if enabled by runtime 
command line (flag `ASAN_OPTIONS=detect_stack_use_after_return=1`)
----------------
"Code generated and always enabled." is implementation details.
Something like this? 

```
Valid options are:
* ``always`` - Detect use-after-return.
* ``runtime`` - Detect use-after-return with runtime ON/OFF switch (environment 
variable `ASAN_OPTIONS=detect_stack_use_after_return=1`, default: 0)
* ``never`` - Do not detect use-after-return.
```


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D104155

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to