This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG4416e4a9ed06: [Tooling/Inclusion] Add the generic abs symbol to the table. (authored by hokein).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D144721/new/ https://reviews.llvm.org/D144721 Files: clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc Index: clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc =================================================================== --- clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc +++ clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc @@ -233,6 +233,15 @@ SYMBOL(ssize, std::, <unordered_set>) SYMBOL(ssize, std::, <vector>) +// Add headers for generic integer-type abs. +// Ignore other variants (std::complex, std::valarray, std::intmax_t) +SYMBOL(abs, std::, <cstdlib>) +SYMBOL(abs, std::, <cmath>) +SYMBOL(abs, None, <cstdlib>) +SYMBOL(abs, None, <stdlib.h>) +SYMBOL(abs, None, <cmath>) +SYMBOL(abs, None, <math.h>) + // std::get has a few variants for different types (tuple, array, pair etc) // which is tricky to disambiguate without type information. // Don't set any header for it, as it comes with the type header.
Index: clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc =================================================================== --- clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc +++ clang/lib/Tooling/Inclusions/Stdlib/StdSpecialSymbolMap.inc @@ -233,6 +233,15 @@ SYMBOL(ssize, std::, <unordered_set>) SYMBOL(ssize, std::, <vector>) +// Add headers for generic integer-type abs. +// Ignore other variants (std::complex, std::valarray, std::intmax_t) +SYMBOL(abs, std::, <cstdlib>) +SYMBOL(abs, std::, <cmath>) +SYMBOL(abs, None, <cstdlib>) +SYMBOL(abs, None, <stdlib.h>) +SYMBOL(abs, None, <cmath>) +SYMBOL(abs, None, <math.h>) + // std::get has a few variants for different types (tuple, array, pair etc) // which is tricky to disambiguate without type information. // Don't set any header for it, as it comes with the type header.
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits