]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/analyzer/pending-diagnostic.cc
analyzer: introduce namespace to avoid ODR clashes (PR 93307)
[thirdparty/gcc.git] / gcc / analyzer / pending-diagnostic.cc
index b692c98304f46aa0cba03ac81fd6e73a3927ebb9..c196903afe0ba65080ccfc6f0d9275751e378db2 100644 (file)
@@ -35,6 +35,8 @@ along with GCC; see the file COPYING3.  If not see
 
 #if ENABLE_ANALYZER
 
+namespace ana {
+
 /* Generate a label_text by printing FMT.
 
    Use a clone of the global_dc for formatting callbacks.
@@ -76,4 +78,6 @@ pending_diagnostic::same_tree_p (tree t1, tree t2)
   return simple_cst_equal (t1, t2) == 1;
 }
 
+} // namespace ana
+
 #endif /* #if ENABLE_ANALYZER */