//
//===----------------------------------------------------------------------===//
-#include "ClangSACheckers.h"
+#include "../ClangSACheckers.h"
#include "UninitializedObject.h"
#include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
#include "clang/StaticAnalyzer/Core/Checker.h"
/// 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) {}
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());
}
//
//===----------------------------------------------------------------------===//
-#include "ClangSACheckers.h"
+#include "../ClangSACheckers.h"
#include "UninitializedObject.h"
#include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
#include "clang/StaticAnalyzer/Core/Checker.h"
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;