diff options
| author | Devin Coughlin <dcoughlin@apple.com> | 2016-06-13 03:58:58 +0000 |
|---|---|---|
| committer | Devin Coughlin <dcoughlin@apple.com> | 2016-06-13 03:58:58 +0000 |
| commit | 9cffa40b75f4936b3996686570f98d8640155585 (patch) | |
| tree | 791729f42fc7cd84d7b61edf8a3ac010821820b9 /clang/lib/StaticAnalyzer/Checkers/MPI-Checker | |
| parent | 160f19cddaebb38a93f6528336c57ef20dd529e6 (diff) | |
| download | bcm5719-llvm-9cffa40b75f4936b3996686570f98d8640155585.tar.gz bcm5719-llvm-9cffa40b75f4936b3996686570f98d8640155585.zip | |
[analyzer] Remove some list initialization from MPI Checker to make MSVC bots happy.
This is a speculative attempt to fix the compiler error: "list initialization inside
member initializer list or non-static data member initializer is not implemented" with
r272529.
llvm-svn: 272530
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/MPI-Checker')
| -rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIBugReporter.h | 6 | ||||
| -rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIFunctionClassifier.h | 32 |
2 files changed, 19 insertions, 19 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIBugReporter.h b/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIBugReporter.h index edccad3523a..cf9c461bcdb 100644 --- a/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIBugReporter.h +++ b/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIBugReporter.h @@ -71,7 +71,7 @@ public: BugReporter &BReporter) const; private: - const std::string MPIError{"MPI Error"}; + const std::string MPIError = "MPI Error"; // path-sensitive bug types std::unique_ptr<BugType> UnmatchedWaitBugType; @@ -84,7 +84,7 @@ private: public: RequestNodeVisitor(const MemRegion *const MemoryRegion, const std::string &ErrText) - : RequestRegion(MemoryRegion), ErrorText{ErrText} {} + : RequestRegion(MemoryRegion), ErrorText(ErrText) {} void Profile(llvm::FoldingSetNodeID &ID) const override { static int X = 0; @@ -99,7 +99,7 @@ private: private: const MemRegion *const RequestRegion; - bool IsNodeFound{false}; + bool IsNodeFound = false; std::string ErrorText; }; }; diff --git a/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIFunctionClassifier.h b/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIFunctionClassifier.h index 8eeb1b48f60..65e908912c5 100644 --- a/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIFunctionClassifier.h +++ b/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIFunctionClassifier.h @@ -68,26 +68,26 @@ private: llvm::SmallVector<IdentifierInfo *, 32> MPIType; // point-to-point functions - IdentifierInfo *IdentInfo_MPI_Send{nullptr}, *IdentInfo_MPI_Isend{nullptr}, - *IdentInfo_MPI_Ssend{nullptr}, *IdentInfo_MPI_Issend{nullptr}, - *IdentInfo_MPI_Bsend{nullptr}, *IdentInfo_MPI_Ibsend{nullptr}, - *IdentInfo_MPI_Rsend{nullptr}, *IdentInfo_MPI_Irsend{nullptr}, - *IdentInfo_MPI_Recv{nullptr}, *IdentInfo_MPI_Irecv{nullptr}; + IdentifierInfo *IdentInfo_MPI_Send = nullptr, *IdentInfo_MPI_Isend = nullptr, + *IdentInfo_MPI_Ssend = nullptr, *IdentInfo_MPI_Issend = nullptr, + *IdentInfo_MPI_Bsend = nullptr, *IdentInfo_MPI_Ibsend = nullptr, + *IdentInfo_MPI_Rsend = nullptr, *IdentInfo_MPI_Irsend = nullptr, + *IdentInfo_MPI_Recv = nullptr, *IdentInfo_MPI_Irecv = nullptr; // collective functions - IdentifierInfo *IdentInfo_MPI_Scatter{nullptr}, - *IdentInfo_MPI_Iscatter{nullptr}, *IdentInfo_MPI_Gather{nullptr}, - *IdentInfo_MPI_Igather{nullptr}, *IdentInfo_MPI_Allgather{nullptr}, - *IdentInfo_MPI_Iallgather{nullptr}, *IdentInfo_MPI_Bcast{nullptr}, - *IdentInfo_MPI_Ibcast{nullptr}, *IdentInfo_MPI_Reduce{nullptr}, - *IdentInfo_MPI_Ireduce{nullptr}, *IdentInfo_MPI_Allreduce{nullptr}, - *IdentInfo_MPI_Iallreduce{nullptr}, *IdentInfo_MPI_Alltoall{nullptr}, - *IdentInfo_MPI_Ialltoall{nullptr}, *IdentInfo_MPI_Barrier{nullptr}; + IdentifierInfo *IdentInfo_MPI_Scatter = nullptr, + *IdentInfo_MPI_Iscatter = nullptr, *IdentInfo_MPI_Gather = nullptr, + *IdentInfo_MPI_Igather = nullptr, *IdentInfo_MPI_Allgather = nullptr, + *IdentInfo_MPI_Iallgather = nullptr, *IdentInfo_MPI_Bcast = nullptr, + *IdentInfo_MPI_Ibcast = nullptr, *IdentInfo_MPI_Reduce = nullptr, + *IdentInfo_MPI_Ireduce = nullptr, *IdentInfo_MPI_Allreduce = nullptr, + *IdentInfo_MPI_Iallreduce = nullptr, *IdentInfo_MPI_Alltoall = nullptr, + *IdentInfo_MPI_Ialltoall = nullptr, *IdentInfo_MPI_Barrier = nullptr; // additional functions - IdentifierInfo *IdentInfo_MPI_Comm_rank{nullptr}, - *IdentInfo_MPI_Comm_size{nullptr}, *IdentInfo_MPI_Wait{nullptr}, - *IdentInfo_MPI_Waitall{nullptr}; + IdentifierInfo *IdentInfo_MPI_Comm_rank = nullptr, + *IdentInfo_MPI_Comm_size = nullptr, *IdentInfo_MPI_Wait = nullptr, + *IdentInfo_MPI_Waitall = nullptr; }; } // end of namespace: mpi |

