[clang] [llvm] [llvm] Support llvm::Any across shared libraries on windows (PR #108051)

Yitzhak Mandelbaum via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 14 17:17:34 PDT 2024


================
@@ -28,12 +28,24 @@
 #include "clang/Analysis/FlowSensitive/MatchSwitch.h"
 #include "clang/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.h"
 #include "clang/Analysis/FlowSensitive/WatchedLiteralsSolver.h"
+#include "clang/Support/Compiler.h"
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/STLFunctionalExtras.h"
 #include "llvm/ADT/SmallVector.h"
 #include "llvm/Support/Errc.h"
 #include "llvm/Support/Error.h"
 
+namespace clang {
+namespace dataflow {
+class NoopLattice;
----------------
ymand wrote:

Why is this forward declaration placed in this file, when the NoopLattice is defined in its own file? Regardless, if it does belong here, please comment to explain the intent. I'm a code owner and yet I don't understand what this is doing and how/what I should do to prevent it from breaking in the case of changes. IIUC, this change is Window-specific and seems fragile, making it all the more critical to clearly document.

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


More information about the cfe-commits mailing list