C++: Update deprecated note to respect identical files.

This commit is contained in:
Geoffrey White
2024-02-26 16:38:08 +00:00
parent 5c4543f167
commit 2e66392353
2 changed files with 2 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
// NOTE: There are two copies of this file, and they must be kept identical: // NOTE: There are two copies of this file, and they must be kept identical:
// - semmle/code/cpp/controlflow/SubBasicBlocks.qll // - semmle/code/cpp/controlflow/SubBasicBlocks.qll
// - semmle/code/cpp/dataflow/internal/SubBasicBlocks.qll // - semmle/code/cpp/dataflow/internal/SubBasicBlocks.qll [now DEPRECATED]
// //
// The second one is a private copy of the `SubBasicBlocks` library for // The second one is a private copy of the `SubBasicBlocks` library for
// internal use by the data flow library. Having an extra copy prevents // internal use by the data flow library. Having an extra copy prevents

View File

@@ -1,14 +1,12 @@
// NOTE: There are two copies of this file, and they must be kept identical: // NOTE: There are two copies of this file, and they must be kept identical:
// - semmle/code/cpp/controlflow/SubBasicBlocks.qll // - semmle/code/cpp/controlflow/SubBasicBlocks.qll
// - semmle/code/cpp/dataflow/internal/SubBasicBlocks.qll // - semmle/code/cpp/dataflow/internal/SubBasicBlocks.qll [now DEPRECATED]
// //
// The second one is a private copy of the `SubBasicBlocks` library for // The second one is a private copy of the `SubBasicBlocks` library for
// internal use by the data flow library. Having an extra copy prevents // internal use by the data flow library. Having an extra copy prevents
// non-monotonic recursion errors in queries that use both the data flow // non-monotonic recursion errors in queries that use both the data flow
// library and the `SubBasicBlocks` library. // library and the `SubBasicBlocks` library.
/** /**
* DEPRECATED: Use `semmle.code.cpp.dataflow.new.DataFlow` instead.
*
* Provides the `SubBasicBlock` class, used for partitioning basic blocks in * Provides the `SubBasicBlock` class, used for partitioning basic blocks in
* smaller pieces. * smaller pieces.
*/ */