Skip to content

Commit f862761

Browse files
committed
Update on "Add NOSTDINC and NOTORCHINC lintrunner"
Prohibit standard C++ container, aten, and torch includes in core, at least pending further review. Note that non-core directories, such as extension/, test/, and any testing_util/ subdirectories, are exempted. Differential Revision: [D65541332](https://our.internmc.facebook.com/intern/diff/D65541332/) [ghstack-poisoned]
2 parents f3ef25d + bb7b5b9 commit f862761

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.lintrunner.toml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,7 @@ exclude_patterns = [
210210
'**/test/**',
211211
'**/testing_util/**',
212212
'**/third-party/**',
213-
'backends/mediatek/**',
214-
'backends/vulkan/**',
215-
'backends/xnnpack/**',
213+
'backends/**',
216214
'devtools/**',
217215
'examples/**',
218216
'extension/**',
@@ -248,15 +246,21 @@ include_patterns = [
248246
]
249247
exclude_patterns = [
250248
'**/devtools/**',
249+
'**/fb/**',
250+
'**/test/**',
251+
'**/tests/**',
251252
'**/testing_util/**',
252253
'**/third-party/**',
253-
'backends/mediatek/**',
254-
'backends/vulkan/**',
255-
'backends/xnnpack/**',
254+
'backends/**',
255+
'codegen/templates/RegisterDispatchKeyCustomOps.cpp',
256+
'codegen/templates/RegisterSchema.cpp',
256257
'devtools/**',
257258
'examples/**',
259+
'exir/verification/bindings.cpp',
258260
'extension/**',
259261
'kernels/optimized/**',
262+
'runtime/core/exec_aten/**',
263+
'runtime/executor/tensor_parser_aten.cpp',
260264
'scripts/**',
261265
'test/**',
262266
'third-party/**',

0 commit comments

Comments
 (0)