[clang] [clang] Move CCC_OVERRIDE_OPTIONS implementation to Driver (PR #85425)
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 15 11:11:53 PDT 2024
================
@@ -6677,3 +6678,136 @@ llvm::Error driver::expandResponseFiles(SmallVectorImpl<const char *> &Args,
return llvm::Error::success();
}
+
+namespace {
+
+const char *GetStableCStr(std::set<std::string> &SavedStrings, StringRef S) {
+ return SavedStrings.insert(std::string(S)).first->c_str();
+}
+
+/// applyOneOverrideOption - Apply a list of edits to the input argument lists.
----------------
MaskRay wrote:
https://llvm.org/docs/CodingStandards.html
Don’t duplicate the documentation comment in the header file and in the implementation file.
https://github.com/llvm/llvm-project/pull/85425
More information about the cfe-commits
mailing list