aboutsummaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2024-06-07 14:08:42 -0400
committerGitHub <noreply@github.com>2024-06-07 14:08:42 -0400
commit2c047e67a5bfb479d7422f5b270e7f90ae037508 (patch)
tree979dce510798f03ac9c3c1de1c60a9514987b0b8 /libc
parent66df6141659375e738d9b9b74bf79b2317576042 (diff)
downloadllvm-2c047e67a5bfb479d7422f5b270e7f90ae037508.zip
llvm-2c047e67a5bfb479d7422f5b270e7f90ae037508.tar.gz
llvm-2c047e67a5bfb479d7422f5b270e7f90ae037508.tar.bz2
[clang] Add fixit for using declaration with a (qualified) namespace (#94762)
For `using std::literals`, we now output: error: using declaration cannot refer to a namespace 4 | using std::literals; | ~~~~~^ note: did you mean 'using namespace'? 4 | using std::literals; | ^ | namespace Previously, we didn't have the note. This only fires for qualified namespaces. Just `using std;` doesn't trigger this, since using declarations without cxx scope specifier are rejected earlier. Making that work is an exercise for future selves :)
Diffstat (limited to 'libc')
0 files changed, 0 insertions, 0 deletions