http://llvm.org/bugs/show_bug.cgi?id=21982
Bug ID: 21982
Summary: Add Clang warning about extern declarations in C and
C++ files
Product: new-bugs
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Hi!
I think will be good idea if Clang will produce warnings when extern
declarations are placed in C/C++ files (not included from other files).
Such declarations are definitely belong to headers, so their appearance in
source files are indication of bad coding practices.
Intel compiler produces such warnings as "warning #1419: external declaration
in primary source file".
Eugene.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs