]> granicus.if.org Git - clang/commit
Fix PR8625 and correctly interpret member-calls to static members when
authorChandler Carruth <chandlerc@gmail.com>
Tue, 16 Nov 2010 08:49:43 +0000 (08:49 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 16 Nov 2010 08:49:43 +0000 (08:49 +0000)
commit9263a3060087eb7b5954ec4ee1ff2c22227b422e
tree3899802017747e6ef9fcefcb326b505607145e60
parent07d7e7a6b10f798459f350b792713db2fb3e9365
Fix PR8625 and correctly interpret member-calls to static members when
producing warnings.

This feels really fragile, and I've not audited all other argument index-based
warnings. I suspect we'll grow this bug on another warning eventually. It might
be nice to adjust the argument indices when building up the attribute AST node,
as we already have to remember about the 'this' argument within that code to
produce correct errors.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119340 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/SemaCXX/attr-format.cpp