blob: e8726d8f813bb3a1edd9f8f7666007e5b54f0b75 [file] [log] [blame]
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef TOOLS_CLANG_PLUGINS_OPTIONS_H_
#define TOOLS_CLANG_PLUGINS_OPTIONS_H_
#include <string>
#include <vector>
namespace chrome_checker {
struct Options {
bool check_base_classes = false;
bool check_blink_data_member_type = false;
bool check_ipc = false;
bool check_layout_object_methods = false;
bool raw_ref_template_as_trivial_member = false;
bool check_bad_raw_ptr_cast = false;
bool check_raw_ptr_fields = false;
bool check_stack_allocated = false;
bool check_raw_ref_fields = false;
// `check_raw_ptr_to_stack_allocated` enables following features:
// - Disallow `raw_ptr<StackAllocated>`
// - Allow `StackAllocated*` (bypasses `check_raw_ptr_fields`)
// `disable_check_raw_ptr_to_stack_allocated_error` overwrites first feature
// to allow both of `raw_ptr<StackAllocated>` and `StackAllocated*`.
bool check_raw_ptr_to_stack_allocated = false;
bool disable_check_raw_ptr_to_stack_allocated_error = false;
bool check_ptrs_to_non_string_literals = false;
bool check_span_fields = false;
bool enable_match_profiling = false;
std::string exclude_fields_file;
std::vector<std::string> raw_ptr_paths_to_exclude_lines;
std::vector<std::string> check_bad_raw_ptr_cast_exclude_funcs;
std::vector<std::string> check_bad_raw_ptr_cast_exclude_paths;
};
} // namespace chrome_checker
#endif // TOOLS_CLANG_PLUGINS_OPTIONS_H_