llvm-project/clang/lib/Parse
Nigel Perks 27ea7d0a6e Fix inconsistent availability attribute message string literal check.
Function Parser::ParseAvailabilityAttribute checks that the message string of
an availability attribute is not a wide string literal. Test case
clang/test/Parser/attr-availability.c specifies that a string literal is
expected.

The code checked that the first token in a string concatenation is a string
literal, and then that the concatenated string consists of 1-byte characters.
On a target where wide character is 1 byte, a string concatenation "a" L"b"
passes both those checks, but L"b" alone is rejected. More generally, "a" u8"b"
passes the checks, but u8"b" alone is rejected.

So check isAscii() instead of character size.
2020-12-08 12:33:59 -05:00
..
CMakeLists.txt [openmp] Base of tablegen generated OpenMP common declaration 2020-06-23 10:32:32 -04:00
ParseAST.cpp [Support] Add TimeTraceScope constructor without detail arg 2019-12-11 14:32:21 +00:00
ParseCXXInlineMethods.cpp [NFC, Refactor] Modernize enum FunctionDefinitionKind (DeclSpech.h) into a scoped enum 2020-11-21 09:49:52 -06:00
ParseDecl.cpp Fix inconsistent availability attribute message string literal check. 2020-12-08 12:33:59 -05:00
ParseDeclCXX.cpp [NFC, Refactor] Modernize enum FunctionDefinitionKind (DeclSpech.h) into a scoped enum 2020-11-21 09:49:52 -06:00
ParseExpr.cpp [clang] Enable code completion of designated initializers in Compound Literal Expressions 2020-12-01 12:06:48 +01:00
ParseExprCXX.cpp P0857R0: Parse a requires-clause after an explicit 2020-12-03 15:54:16 -08:00
ParseInit.cpp [clang][CodeComplete] Support for designated initializers 2020-01-28 16:34:15 +01:00
ParseObjc.cpp [NFC, Refactor] Rename the (scoped) enum DeclaratorContext's enumerators to remove duplication 2020-11-10 23:40:12 -06:00
ParseOpenMP.cpp [NFC, Refactor] Rename the (scoped) enum DeclaratorContext's enumerators to remove duplication 2020-11-10 23:40:12 -06:00
ParsePragma.cpp Add option 'exceptions' to pragma clang fp 2020-10-31 17:36:12 +07:00
ParseStmt.cpp [NFC, Refactor] Rename the (scoped) enum DeclaratorContext's enumerators to remove duplication 2020-11-10 23:40:12 -06:00
ParseStmtAsm.cpp [Parser] ParseMicrosoftAsmStatement - Replace bit '|' operator with logical '||' operator. (PR47071) 2020-10-05 14:23:28 +01:00
ParseTemplate.cpp PR45699: Fix crash if an unexpanded parameter pack appears in a 2020-12-03 15:26:06 -08:00
ParseTentative.cpp [clang] Add a new nullability annotation for swift async: _Nullable_result 2020-12-07 17:19:20 -05:00
Parser.cpp [NFC, Refactor] Modernize enum FunctionDefinitionKind (DeclSpech.h) into a scoped enum 2020-11-21 09:49:52 -06:00