Mercurial > hg > CbC > CbC_llvm
diff clang/lib/Lex/MacroArgs.cpp @ 252:1f2b6ac9f198 llvm-original
LLVM16-1
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Aug 2023 09:04:13 +0900 |
parents | 1d019706d866 |
children |
line wrap: on
line diff
--- a/clang/lib/Lex/MacroArgs.cpp Wed Nov 09 17:47:54 2022 +0900 +++ b/clang/lib/Lex/MacroArgs.cpp Fri Aug 18 09:04:13 2023 +0900 @@ -62,7 +62,7 @@ // Copy the actual unexpanded tokens to immediately after the result ptr. if (!UnexpArgTokens.empty()) { - static_assert(std::is_trivial<Token>::value, + static_assert(std::is_trivial_v<Token>, "assume trivial copyability if copying into the " "uninitialized array (as opposed to reusing a cached " "MacroArgs)"); @@ -94,7 +94,7 @@ // Run the dtor to deallocate the vectors. this->~MacroArgs(); // Release the memory for the object. - static_assert(std::is_trivially_destructible<Token>::value, + static_assert(std::is_trivially_destructible_v<Token>, "assume trivially destructible and forego destructors"); free(this); @@ -169,7 +169,7 @@ std::vector<Token> &Result = PreExpArgTokens[Arg]; if (!Result.empty()) return Result; - SaveAndRestore<bool> PreExpandingMacroArgs(PP.InMacroArgPreExpansion, true); + SaveAndRestore PreExpandingMacroArgs(PP.InMacroArgPreExpansion, true); const Token *AT = getUnexpArgument(Arg); unsigned NumToks = getArgLength(AT)+1; // Include the EOF.