llvm-project/clang/lib/Lex
Alex Lorenz 9c5c2bfe54 Add a fix-it for -Wunguarded-availability
This patch adds a fix-it for the -Wunguarded-availability warning. This fix-it
is similar to the Swift one: it suggests that you wrap the statement in an
`if (@available)` check. The produced fixits are indented (just like the Swift
ones) to make them look nice in Xcode's fix-it preview.

rdar://31680358

Differential Revision: https://reviews.llvm.org/D32424

llvm-svn: 302253
2017-05-05 16:42:44 +00:00
..
CMakeLists.txt
HeaderMap.cpp Use StringRef for MemoryBuffer identifier API (NFC) 2016-10-01 16:38:28 +00:00
HeaderSearch.cpp Preprocessor: Suppress -Wnonportable-include-path for header maps 2017-04-27 21:41:51 +00:00
Lexer.cpp Add a fix-it for -Wunguarded-availability 2017-05-05 16:42:44 +00:00
LiteralSupport.cpp Allow lexer to handle string_view literals. Patch from Anton Bikineev. 2016-12-30 04:51:10 +00:00
MacroArgs.cpp [modules] Stop trying to fake up a linear MacroDirective history. 2015-04-29 23:20:19 +00:00
MacroInfo.cpp Constify SourceManager input to MacroInfo::getDefinitionLengthSlow, NFC. 2017-04-27 09:56:39 +00:00
ModuleMap.cpp [modules ts] Diagnose 'export' declarations outside of a module interface. 2017-04-24 23:12:30 +00:00
PPCaching.cpp [Preprocessor] Fix incorrect token caching that occurs when lexing _Pragma 2017-02-24 17:45:16 +00:00
PPCallbacks.cpp
PPConditionalDirectiveRecord.cpp Switch PPCallbacks to take the new MacroDefinition instead of MacroDirective*, in order to preserve full information on module macro expansion. 2015-05-04 03:15:40 +00:00
PPDirectives.cpp Add #pragma clang module begin/end pragmas and generate them when preprocessing a module. 2017-05-04 00:29:54 +00:00
PPExpressions.cpp Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes. 2016-09-07 21:53:17 +00:00
PPLexerChange.cpp Add #pragma clang module begin/end pragmas and generate them when preprocessing a module. 2017-05-04 00:29:54 +00:00
PPMacroExpansion.cpp Add #pragma clang module begin/end pragmas and generate them when preprocessing a module. 2017-05-04 00:29:54 +00:00
PTHLexer.cpp Turn FileManager DirectoryEntry::Name from raw pointer to StringRef (NFC) 2016-10-11 07:31:29 +00:00
Pragma.cpp Add #pragma clang module begin/end pragmas and generate them when preprocessing a module. 2017-05-04 00:29:54 +00:00
PreprocessingRecord.cpp Revert "Revert "PPCallbacks::MacroUndefined, change signature and add test."" 2017-04-26 21:05:44 +00:00
Preprocessor.cpp Add #pragma clang module begin/end pragmas and generate them when preprocessing a module. 2017-05-04 00:29:54 +00:00
PreprocessorLexer.cpp
ScratchBuffer.cpp MSan told me that we actually dump the entire scratch buffer into PCH files, initialize it. 2015-04-06 20:01:49 +00:00
TokenConcatenation.cpp [PP] Replace some index based for loops with range based ones 2016-10-26 13:06:13 +00:00
TokenLexer.cpp Fix whitespace before token-paste of an argument. 2017-05-04 21:31:17 +00:00
UnicodeCharSets.h Header guard canonicalization, clang part. 2014-08-13 16:25:19 +00:00