We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0859de9 commit 3ad2d3dCopy full SHA for 3ad2d3d
clang/include/clang/Analysis/Scalable/Model/BuildNamespace.h
@@ -9,6 +9,7 @@
9
#ifndef LLVM_CLANG_ANALYSIS_SCALABLE_MODEL_BUILDNAMESPACE_H
10
#define LLVM_CLANG_ANALYSIS_SCALABLE_MODEL_BUILDNAMESPACE_H
11
12
+#include "llvm/ADT/STLExtras.h"
13
#include "llvm/ADT/StringRef.h"
14
#include <optional>
15
#include <string>
@@ -62,8 +63,8 @@ class NestedBuildNamespace {
62
63
64
NestedBuildNamespace makeQualified(NestedBuildNamespace Namespace) {
65
auto Copy = *this;
- for (const auto& N : Namespace.Namespaces)
66
- Copy.Namespaces.push_back(N);
+ Copy.Namespaces.reserve(Copy.Namespaces.size() + Namespace.Namespaces.size());
67
+ llvm::append_range(Copy.Namespaces, Namespace.Namespaces);
68
return Copy;
69
}
70
0 commit comments