forked from OSchip/llvm-project
Fix Clang warnings and bad #include filenames in r339595 and r339599.
llvm-svn: 339624
This commit is contained in:
parent
f79178635a
commit
651d683ee3
|
@ -32,6 +32,8 @@ class FieldNode {
|
|||
protected:
|
||||
const FieldRegion *FR;
|
||||
|
||||
~FieldNode() = default;
|
||||
|
||||
public:
|
||||
FieldNode(const FieldRegion *FR) : FR(FR) { assert(FR); }
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "ClangSACheckers.h"
|
||||
#include "../ClangSACheckers.h"
|
||||
#include "UninitializedObject.h"
|
||||
#include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
|
||||
#include "clang/StaticAnalyzer/Core/Checker.h"
|
||||
|
@ -74,7 +74,7 @@ public:
|
|||
|
||||
/// A basic field type, that is not a pointer or a reference, it's dynamic and
|
||||
/// static type is the same.
|
||||
class RegularField : public FieldNode {
|
||||
class RegularField final : public FieldNode {
|
||||
public:
|
||||
RegularField(const FieldRegion *FR) : FieldNode(FR) {}
|
||||
|
||||
|
@ -84,7 +84,7 @@ public:
|
|||
|
||||
virtual void printPrefix(llvm::raw_ostream &Out) const override {}
|
||||
|
||||
virtual void printNode(llvm::raw_ostream &Out) const {
|
||||
virtual void printNode(llvm::raw_ostream &Out) const override {
|
||||
Out << getVariableName(getDecl());
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#include "ClangSACheckers.h"
|
||||
#include "../ClangSACheckers.h"
|
||||
#include "UninitializedObject.h"
|
||||
#include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
|
||||
#include "clang/StaticAnalyzer/Core/Checker.h"
|
||||
|
@ -31,7 +31,7 @@ using namespace clang::ento;
|
|||
namespace {
|
||||
|
||||
/// Represents a pointer or a reference field.
|
||||
class LocField : public FieldNode {
|
||||
class LocField final : public FieldNode {
|
||||
/// We'll store whether the pointee or the pointer itself is uninitialited.
|
||||
const bool IsDereferenced;
|
||||
|
||||
|
|
Loading…
Reference in New Issue