[LLVMbugs] [Bug 21284] New: Preprocessor warning when redefining keywords

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Oct 15 05:04:51 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=21284

            Bug ID: 21284
           Summary: Preprocessor warning when redefining keywords
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: gonzalobg88 at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Could the preprocessor output a warning when someone redefines something that
shouldn't be redefined, like:

an identifier with special meaning:

#define override const

a keyword: 

#define break continue

an alternative representation: 

#define and or

a literal:

#define 1 2
#define "hello" "world"
#define 2. 3.

escape sequences... there are probably a lot of things that shouldn't be
redefined.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141015/c6a5cdbf/attachment.html>


More information about the llvm-bugs mailing list