mirror of
https://github.com/esphome/esphome.git
synced 2024-12-26 07:24:54 +01:00
fix clang-tidy
This commit is contained in:
parent
dd43acf7af
commit
0c494f3650
4 changed files with 4 additions and 2 deletions
|
@ -85,6 +85,8 @@ Checks: >-
|
|||
-readability-redundant-string-init,
|
||||
-readability-uppercase-literal-suffix,
|
||||
-readability-use-anyofallof,
|
||||
-readability-named-parameter,
|
||||
-readability-braces-around-statements,
|
||||
WarningsAsErrors: '*'
|
||||
AnalyzeTemporaryDtors: false
|
||||
FormatStyle: google
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/drivers/watchdog.h>
|
||||
#include <zephyr/sys/reboot.h>
|
||||
#include "esphome/core/hal.h"
|
||||
|
||||
namespace esphome {
|
||||
|
||||
|
|
|
@ -104,7 +104,6 @@ template<typename T> class optional { // NOLINT
|
|||
has_value_ = true;
|
||||
}
|
||||
|
||||
private:
|
||||
bool has_value_{false}; // NOLINT
|
||||
value_type value_; // NOLINT
|
||||
};
|
||||
|
|
|
@ -218,7 +218,7 @@ int main() { return 0;}
|
|||
r"(-O[0-3s]|-g|-std=[^\s]+|-Wall|-Wextra|-Werror|--[^\s]+|-f[^\s]+|-m[^\s]+|-imacros\s*[^\s]+)"
|
||||
)
|
||||
for match in flag_pattern.findall(command):
|
||||
flags.append(match)
|
||||
flags.append(match.replace("-imacros ", "-imacros"))
|
||||
return flags
|
||||
|
||||
def transform_to_idedata_format(compile_commands):
|
||||
|
|
Loading…
Reference in a new issue