Skip to content

Commit a89bcdc

Browse files
committed
Adds example formatting errors
1 parent d67577c commit a89bcdc

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

include/phasar/Utils/IO.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ namespace psr {
2727

2828
std::string readTextFile(const std::filesystem::path &Path);
2929

30-
std::unique_ptr<llvm::MemoryBuffer> readFile(const std::filesystem::path &Path);
30+
std::unique_ptr
31+
<llvm::MemoryBuffer> readFile(const std::filesystem::path &Path);
3132
std::unique_ptr<llvm::MemoryBuffer> readFile(const llvm::Twine &Path);
3233

3334
void writeTextFile(const std::filesystem::path &Path, llvm::StringRef Content);

lib/Utils/LLVMShorthands.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ bool isFunctionPointer(const llvm::Value *V) noexcept {
5757
}
5858

5959
bool isAllocaInstOrHeapAllocaFunction(const llvm::Value *V) noexcept {
60-
if (V) {
60+
if (V)
61+
{
6162
if (llvm::isa<llvm::AllocaInst>(V)) {
6263
return true;
6364
}
@@ -457,8 +458,7 @@ llvm::StringRef getVarAnnotationIntrinsicName(const llvm::CallInst *CallInst) {
457458
return Data->getAsCString();
458459
}
459460

460-
llvm::ModuleSlotTracker &
461-
ModulesToSlotTracker::getSlotTrackerForModule(const llvm::Module *M) {
461+
llvm::ModuleSlotTracker &ModulesToSlotTracker::getSlotTrackerForModule(const llvm::Module *M) {
462462
auto &ret = MToST[M];
463463
if (M == nullptr && ret == nullptr) {
464464
ret = std::make_unique<llvm::ModuleSlotTracker>(M);

0 commit comments

Comments
 (0)