diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2022-01-26 16:55:53 +0100 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2022-01-26 16:55:53 +0100 |
commit | f15014ff549a8686671a599f7b49ce9963769eaf (patch) | |
tree | c71b273ecd3983fba8bfd6777b534c045b120619 /clang/unittests/Tooling/CompilationDatabaseTest.cpp | |
parent | 297bbf106288b0d673709ca02917d82e7bebdf1a (diff) | |
download | llvm-f15014ff549a8686671a599f7b49ce9963769eaf.zip llvm-f15014ff549a8686671a599f7b49ce9963769eaf.tar.gz llvm-f15014ff549a8686671a599f7b49ce9963769eaf.tar.bz2 |
Revert "Rename llvm::array_lengthof into llvm::size to match std::size from C++17"
This reverts commit ef8206320769ad31422a803a0d6de6077fd231d2.
- It conflicts with the existing llvm::size in STLExtras, which will now
never be called.
- Calling it without llvm:: breaks C++17 compat
Diffstat (limited to 'clang/unittests/Tooling/CompilationDatabaseTest.cpp')
-rw-r--r-- | clang/unittests/Tooling/CompilationDatabaseTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/unittests/Tooling/CompilationDatabaseTest.cpp b/clang/unittests/Tooling/CompilationDatabaseTest.cpp index 94ccdca..adb9de0 100644 --- a/clang/unittests/Tooling/CompilationDatabaseTest.cpp +++ b/clang/unittests/Tooling/CompilationDatabaseTest.cpp @@ -642,7 +642,7 @@ TEST(ParseFixedCompilationDatabase, HandlesPositionalArgsSyntaxOnly) { // Adjust the given command line arguments to ensure that any positional // arguments in them are stripped. const char *Argv[] = {"--", "somefile.cpp", "-fsyntax-only", "-DDEF3"}; - int Argc = llvm::size(Argv); + int Argc = llvm::array_lengthof(Argv); std::string ErrorMessage; std::unique_ptr<CompilationDatabase> Database = FixedCompilationDatabase::loadFromCommandLine(Argc, Argv, ErrorMessage); |