-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the available facts analysis.
- Loading branch information
Showing
8 changed files
with
318 additions
and
250 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
//===----------- FactUtils.h: Utility functions for facts ----------===// | ||
// | ||
// The LLVM Compiler Infrastructure | ||
// | ||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
// See https://llvm.org/LICENSE.txt for license information. | ||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
// | ||
//===------------------------------------------------------------------===// | ||
// | ||
// This file defines the utility functions for facts. | ||
// | ||
//===------------------------------------------------------------------===// | ||
|
||
#ifndef LLVM_CLANG_FACTUTILS_H | ||
#define LLVM_CLANG_FACTUTILS_H | ||
|
||
#include "clang/AST/Expr.h" | ||
#include "clang/Sema/Sema.h" | ||
|
||
namespace clang { | ||
|
||
class FactPrinter { | ||
public: | ||
// TODO: should not be here | ||
// Top is a special bounds expression that denotes the super set of all | ||
// bounds expressions. | ||
static constexpr RangeBoundsExpr *BoundsTop = nullptr; | ||
|
||
// Pretty print an abstract fact. | ||
static void PrintPretty(Sema &S, const AbstractFact *Fact); | ||
|
||
// Pretty print a list of abstract fact. | ||
static void PrintPretty(Sema &S, const AbstractFactListTy &Facts); | ||
}; | ||
|
||
} // end namespace clang | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.