diff options
author | Haojian Wu <hokein@google.com> | 2017-06-23 09:36:49 +0000 |
---|---|---|
committer | Haojian Wu <hokein@google.com> | 2017-06-23 09:36:49 +0000 |
commit | 25e54c93bba13c08a26e073cdbc9dc3af58c093d (patch) | |
tree | 3508592e170e3310f7a9162b11cb683d951bf114 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | b794c0a5ca23d5e225143e0ba9f8a3e6ca61d46e (diff) | |
download | bcm5719-llvm-25e54c93bba13c08a26e073cdbc9dc3af58c093d.tar.gz bcm5719-llvm-25e54c93bba13c08a26e073cdbc9dc3af58c093d.zip |
[clang-tidy] Fix a false positive in modernize-use-nullptr.
Summary:
The FP happens when a casting nullptr expression is used within a NULL-default-arguemnt cxx constructor.
Before the fix, the check will give a warning on nullptr when running
with the test case, which should not happen:
```
G(g(static_cast<char*>(nullptr)));
^~~~~~~~~~~
nullptr
```
Reviewers: alexfh
Reviewed By: alexfh
Subscribers: cfe-commits, xazax.hun
Differential Revision: https://reviews.llvm.org/D34524
llvm-svn: 306091
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions