mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 17:27:59 +01:00
fix clang
This commit is contained in:
parent
0c0a972c5e
commit
1e552bb458
4 changed files with 4 additions and 6 deletions
|
@ -21,7 +21,7 @@ class TextTraits {
|
|||
int get_max_length() const { return this->max_length_; }
|
||||
|
||||
// Set/get the pattern.
|
||||
void set_pattern(const std::string &pattern) { this->pattern_ = std::move(pattern); }
|
||||
void set_pattern(const std::string &pattern) { this->pattern_ = pattern; }
|
||||
std::string get_pattern() const { return this->pattern_; }
|
||||
|
||||
// Set/get the frontend mode.
|
||||
|
|
|
@ -37,9 +37,7 @@ class RealTimeClock : public PollingComponent {
|
|||
|
||||
void call_setup() override;
|
||||
|
||||
void add_on_time_sync_callback(const std::function<void()> &callback) {
|
||||
this->time_sync_callback_.add(std::move(callback));
|
||||
};
|
||||
void add_on_time_sync_callback(const std::function<void()> &callback) { this->time_sync_callback_.add(callback); };
|
||||
|
||||
protected:
|
||||
/// Report a unix epoch as current time.
|
||||
|
|
|
@ -194,6 +194,7 @@ build_flags =
|
|||
-DUSE_ZEPHYR
|
||||
-DUSE_NRF52
|
||||
lib_deps =
|
||||
bblanchon/ArduinoJson@7.0.0 ; json
|
||||
|
||||
; All the actual environments are defined below.
|
||||
|
||||
|
|
|
@ -116,9 +116,8 @@ def clang_options(idedata):
|
|||
# skip our own directories, we add those later
|
||||
if (
|
||||
not directory.startswith(f"{root_path}/")
|
||||
or directory.startswith(f"{root_path}/.pio/")
|
||||
or (directory.startswith(f"{root_path}") and "/.pio/" in directory)
|
||||
or directory.startswith(f"{root_path}/managed_components/")
|
||||
or "zephyr/include/generated" in directory
|
||||
):
|
||||
cmd.extend(["-isystem", directory])
|
||||
|
||||
|
|
Loading…
Reference in a new issue