summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer/unicode.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't emit "will be treated as an identifier character" warning forRichard Smith2018-09-251-0/+5
| | | | | | | UTF-8 characters that aren't identifier characters in the current language mode. llvm-svn: 343040
* PR38870: Add warning for zero-width unicode characters appearing inRichard Smith2018-09-071-0/+7
| | | | | | identifiers. llvm-svn: 341700
* Warn if we find a Unicode homoglyph for a symbol in an identifier.Richard Smith2017-12-141-0/+5
| | | | | | | | | | | | | | | | Specifically, warn if: * we find a character that the language standard says we must treat as an identifier, and * that character is not reasonably an identifier character (it's a punctuation character or similar), and * it renders identically to a valid non-identifier character in common fixed-width fonts. Some tools "helpfully" substitute the surprising characters for the expected characters, and replacing semicolons with Greek question marks is a common "prank". llvm-svn: 320697
* Add test that we correctly allow some non-letter unicode characters inRichard Smith2015-09-191-1/+10
| | | | | | identifiers, and extend existing test to also cover C++. llvm-svn: 248079
* Lexer: Don't warn about Unicode in preprocessor directives.Jordan Rose2013-01-311-0/+11
| | | | | | | | | This allows people to use Unicode in their #pragma mark and in macros that exist only to be string-ized. <rdar://problem/13107323&13121362> llvm-svn: 174081
* Don't warn about Unicode characters in -E mode.Jordan Rose2013-01-301-0/+9
| | | | | | | | | | | | | | | People use the C preprocessor for things other than C files. Some of them have Unicode characters. We shouldn't warn about Unicode characters appearing outside of identifiers in this case. There's not currently a way for the preprocessor to tell if it's in -E mode, so I added a new flag, derived from the PreprocessorOutputOptions. This is only used by the Unicode warnings for now, but could conceivably be used by other warnings or even behavioral differences later. <rdar://problem/13107323> llvm-svn: 173881
* As an extension, treat Unicode whitespace characters as whitespace.Jordan Rose2013-01-241-0/+6
llvm-svn: 173370
OpenPOWER on IntegriCloud