[clang] [clang-repl] Use default visibility for symbols while building CompilerInstance against emscripten (PR #116779)

via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 19 02:22:51 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 7e85cb8a8a9de57ed10635b843662148a87b17e5 616ebd6b6487eeaa302e6d33de3a371e6c9843f5 --extensions cpp -- clang/lib/Interpreter/Interpreter.cpp clang/lib/Interpreter/Wasm.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Interpreter/Interpreter.cpp b/clang/lib/Interpreter/Interpreter.cpp
index 999271aae7..8b91f55c7e 100644
--- a/clang/lib/Interpreter/Interpreter.cpp
+++ b/clang/lib/Interpreter/Interpreter.cpp
@@ -199,7 +199,7 @@ IncrementalCompilerBuilder::CreateCpp() {
   Argv.push_back("-shared");
   Argv.push_back("-fvisibility=default")
 #endif
-  Argv.insert(Argv.end(), UserArgs.begin(), UserArgs.end());
+      Argv.insert(Argv.end(), UserArgs.begin(), UserArgs.end());
 
   std::string TT = TargetTriple ? *TargetTriple : llvm::sys::getProcessTriple();
   return IncrementalCompilerBuilder::create(TT, Argv);

``````````

</details>


https://github.com/llvm/llvm-project/pull/116779


More information about the cfe-commits mailing list