49d517467c3dcd2c67e8a6c740ba5160e37625f7 |
|
08-Mar-2012 |
Richard Smith <richard-llvm@metafoo.co.uk> |
When checking the encoding of an 8-bit string literal, don't just check the first codepoint! Also, don't reject empty raw string literals for spurious "encoding" issues. Also, don't rely on undefined behavior in ConvertUTF.c. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152344 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Lexer/string-literal-encoding.c
|
91359302b822d829afa93c0dadf5f7ce6e19fbc6 |
|
11-Feb-2012 |
Eli Friedman <eli.friedman@gmail.com> |
Implement warning for non-wide string literals with an unexpected encoding. Downgrade error for non-wide character literals with an unexpected encoding to a warning for compatibility with gcc and older versions of clang. <rdar://problem/10837678>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150295 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Lexer/string-literal-encoding.c
|
0f12507d43c2571108c65f106c1dac5bba2509f0 |
|
25-Jan-2012 |
Eli Friedman <eli.friedman@gmail.com> |
Improve the error message slightly for files that aren't using the expected UTF-8 encoding. Patch by Seth Cantrell. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148991 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Lexer/string-literal-encoding.c
|
2fe9b7fb07dff15dd15dd8755a9a9e6de0fe46fc |
|
15-Dec-2011 |
Richard Trieu <rtrieu@google.com> |
Modify how the -verify flag works. Currently, the verification string and diagnostic message are compared. If either is a substring of the other, then no error is given. This gives rise to an unexpected case: // expect-error{{candidate function has different number of parameters}} will match the following error messages from Clang: candidate function has different number of parameters (expected 1 but has 2) candidate function has different number of parameters It will also match these other error messages: candidate function function has different number of parameters number of parameters This patch will change so that the verification string must be a substring of the diagnostic message before accepting. Also, all the failing tests from this change have been corrected. Some stats from this cleanup: 87 - removed extra spaces around verification strings 70 - wording updates to diagnostics 40 - extra leading or trailing characters (typos, unmatched parens or quotes) 35 - diagnostic level was included (error:, warning:, or note:) 18 - flag name put in the warning (-Wprotocol) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146619 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Lexer/string-literal-encoding.c
|
f12e1b928053ccec033eee4c1e683bb1c54c220a |
|
01-Nov-2011 |
Eli Friedman <eli.friedman@gmail.com> |
Tests for UTF-8 encoding in strings in source code. Patch by Seth Cantrell. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143418 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/Lexer/string-literal-encoding.c
|