]> granicus.if.org Git - clang/commitdiff
Add doxygen comments to Sema::DiagRuntimeBehavior().
authorTed Kremenek <kremenek@apple.com>
Wed, 23 Feb 2011 02:26:43 +0000 (02:26 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 23 Feb 2011 02:26:43 +0000 (02:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126296 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Sema/Sema.h

index 9e46c2c49a7eabbcce65d9867eddf1f2135ae00b..6b74b863a8c1a7691c5a2ca76224160feceec39e 100644 (file)
@@ -1892,6 +1892,14 @@ public:
   void MarkDeclarationReferenced(SourceLocation Loc, Decl *D);
   void MarkDeclarationsReferencedInType(SourceLocation Loc, QualType T);
   void MarkDeclarationsReferencedInExpr(Expr *E);
+  
+  /// \brief Conditionally issue a diagnostic based on the current
+  /// evaluation context.
+  ///
+  /// \param stmt - If stmt is non-null, delay reporting the diagnostic until
+  ///  the function body is parsed, and then do a basic reachability analysis to
+  ///  determine if the statement is reachable.  If it is unreachable, the
+  ///  diagnostic will not be emitted.
   bool DiagRuntimeBehavior(SourceLocation Loc, const Stmt *stmt,
                            const PartialDiagnostic &PD);