doctaweeks / include-what-you-use

Automatically exported from code.google.com/p/include-what-you-use
Other
0 stars 0 forks source link

Warning from forward decl of ExplicitTemplateArgumentList #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When compiling with MSVC, I see these warnings:

3>C:\dev\llvm_svn\tools\clang\include\clang/AST/Expr.h(635): warning C4099: 
'clang::ExplicitTemplateArgumentList' : type name first seen using 'class' now 
seen using 'struct'
3>          
c:\dev\llvm_svn\tools\clang\tools\include-what-you-use\iwyu_ast_util.h(38) : 
see declaration of 'clang::ExplicitTemplateArgumentList'

(duplicated several times for each inclusion of iwyu_ast_util.h)

ExplicitTemplateArgumentList is defined as a struct within Clang, and IWYU 
forward declares it as a class. MSVC takes grievance to this for some reason.

The attached (trivial) patch fixes this. Is it ok to apply?

Original issue reported on code.google.com by paul.hol...@gmail.com on 22 May 2011 at 10:12

Attachments:

GoogleCodeExporter commented 9 years ago
We ran include-what-you-use over the codebase (that is, over itself) again 
recently, which caught this problem and fixed it.  I just sent it to svn today, 
so it should be fixed.  Let me know if you're still seeing it.

Original comment by csilv...@gmail.com on 24 May 2011 at 3:29