diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-10-13 20:07:30 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-10-13 20:07:30 +0000 |
commit | 52dbdc04fe6eaa91cc3c7b0966b242b673e0e823 (patch) | |
tree | 89332319916ccf5fbdfc30e2db8139161573843b /clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp | |
parent | f2db97d8faca73f1abac3221e08418ff40d45947 (diff) | |
download | bcm5719-llvm-52dbdc04fe6eaa91cc3c7b0966b242b673e0e823.tar.gz bcm5719-llvm-52dbdc04fe6eaa91cc3c7b0966b242b673e0e823.zip |
Basic: adjust attributes on `nan` LIBBUILTINs
The `nan` family of functions will inspect the contents of the parameter
that they are passed. As a result, the function cannot be annotated as
`const`. The documentation of the `const` attribute explicitly states
this:
Note that a function that has pointer arguments and examines the data
pointed to must not be declared const.
Adjust the annotations on this family of functions.
llvm-svn: 315741
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp')
0 files changed, 0 insertions, 0 deletions