Skip to content

Commit

Permalink
[ExecuTorch] Remove PATTERNLINT suppressions
Browse files Browse the repository at this point in the history
Pull Request resolved: #6692

The linter these are suppressing was removed in D63859186.
ghstack-source-id: 253169885

Differential Revision: [D65507718](https://our.internmc.facebook.com/intern/diff/D65507718/)
  • Loading branch information
swolchok committed Nov 12, 2024
1 parent dc41596 commit eb6d1cb
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 17 deletions.
1 change: 0 additions & 1 deletion extension/llm/custom_ops/op_sdpa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include <executorch/runtime/core/exec_aten/util/scalar_type_util.h>

#include <array>
// patternlint-disable-next-line executorch-cpp-nostdinc
#include <vector>

#ifdef ET_USE_THREADPOOL
Expand Down
3 changes: 1 addition & 2 deletions extension/llm/runner/image.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@
// A simple image struct.

#pragma once
#include <cstdint>
// patternlint-disable-next-line executorch-cpp-nostdinc
#include <executorch/runtime/platform/compiler.h>
#include <cstdint>
#include <vector>

namespace executorch {
Expand Down
3 changes: 0 additions & 3 deletions extension/llm/runner/multimodal_runner.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@
#pragma once

#include <cstdint>
// patternlint-disable-next-line executorch-cpp-nostdinc
#include <functional>
#include <memory>
// patternlint-disable-next-line executorch-cpp-nostdinc
#include <string>
#include <type_traits>
// patternlint-disable-next-line executorch-cpp-nostdinc
#include <unordered_map>

#include <executorch/extension/llm/runner/image.h>
Expand Down
1 change: 0 additions & 1 deletion extension/llm/runner/stats.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include <executorch/runtime/platform/log.h>
#include <cinttypes>
#include <sstream>
// patternlint-disable-next-line executorch-cpp-nostdinc
#include <string>

namespace executorch {
Expand Down
1 change: 0 additions & 1 deletion extension/llm/runner/text_decoder_runner.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include <executorch/extension/module/module.h>
#include <executorch/extension/tensor/tensor.h>
#include <executorch/runtime/platform/compiler.h>
// patternlint-disable-next-line executorch-cpp-nostdinc
#include <functional>

namespace executorch {
Expand Down
1 change: 0 additions & 1 deletion extension/llm/runner/text_prefiller.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#include <executorch/extension/llm/runner/text_decoder_runner.h>
#include <executorch/extension/llm/tokenizer/tokenizer.h>
// patternlint-disable-next-line executorch-cpp-nostdinc
#include <functional>

namespace executorch {
Expand Down
2 changes: 0 additions & 2 deletions extension/llm/tokenizer/tokenizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
#pragma once

#include <cinttypes>
// patternlint-disable-next-line executorch-cpp-nostdinc
#include <string>
// patternlint-disable-next-line executorch-cpp-nostdinc
#include <vector>

#include <executorch/runtime/core/error.h>
Expand Down
1 change: 0 additions & 1 deletion extension/parallel/thread_parallel.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#pragma once

#include <cstdint>
// @nolint PATTERNLINT Ok to use stdlib for this optional library
#include <functional>

namespace executorch {
Expand Down
2 changes: 0 additions & 2 deletions kernels/optimized/vec/vec_base.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#pragma once

// @nolint PATTERNLINT <functional> is required for std::equal_to, etc.

#include <cassert>
#include <cstdint>
#include <cstring>
Expand Down
4 changes: 1 addition & 3 deletions runtime/core/exec_aten/testing_util/tensor_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@
#ifdef USE_ATEN_LIB
#include <ATen/ATen.h>
#else // !USE_ATEN_LIB
#include <numeric>
// @nolint PATTERNLINT Ok to use stdlib for this test framework
#include <memory>
// @nolint PATTERNLINT Ok to use stdlib for this test framework
#include <numeric>
#include <vector>
#endif // !USE_ATEN_LIB

Expand Down

0 comments on commit eb6d1cb

Please sign in to comment.