fix clang

This commit is contained in:
Tomasz Duda 2024-07-24 19:11:44 +02:00
parent 0c0a972c5e
commit 1e552bb458
4 changed files with 4 additions and 6 deletions

View file

@ -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.

View file

@ -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.

View file

@ -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.

View file

@ -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])