]> granicus.if.org Git - clang/commit
Improve the diagnostics of the number-reading preprocessor directives.
authorMichael Ilseman <milseman@apple.com>
Wed, 10 Apr 2013 01:04:18 +0000 (01:04 +0000)
committerMichael Ilseman <milseman@apple.com>
Wed, 10 Apr 2013 01:04:18 +0000 (01:04 +0000)
commitec27608da7f15b265135f5743fe71da1f8e25ee9
treed7d99b24deeabc4a8948019097ed7ad8d4c21171
parent19b6a707a86302adc80d64464cbc3cb8a7a7f3a6
Improve the diagnostics of the number-reading preprocessor directives.

The GNU line marker directive was sharing code with the #line directive, but some of the warnings/errors were reporting as #line directive diagnostics in both cases.

Previously:
#line 11foo1   ==> "#line directive requires a simple digit sequence"
# 11foo1       ==> "#line directive requires a simple digit sequence"

Now, we get:
#line 11foo1   ==> "#line directive requires a simple digit sequence"
# 11foo1       ==> "GNU line marker directive requires a simple digit sequence"

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179139 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticLexKinds.td
lib/Lex/PPDirectives.cpp
test/Preprocessor/line-directive.c