Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4c82753

Browse files
author
Robert Marsh
committed
C++: remove constexpr in stl.h temporarily
1 parent 94d4e05 commit 4c82753

4 files changed

Lines changed: 9 additions & 1 deletion

File tree

cpp/ql/test/library-tests/dataflow/taint-tests/localTaint.expected

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,15 +703,21 @@
703703
| string.cpp:331:18:331:24 | world | string.cpp:331:18:331:25 | call to basic_string | TAINT |
704704
| string.cpp:331:18:331:25 | call to basic_string | string.cpp:338:18:338:19 | s4 | |
705705
| string.cpp:331:18:331:25 | call to basic_string | string.cpp:338:30:338:31 | s4 | |
706+
| string.cpp:334:8:334:9 | ref arg s1 | string.cpp:335:8:335:9 | s1 | |
706707
| string.cpp:334:8:334:9 | s1 | string.cpp:334:11:334:16 | call to append | TAINT |
707708
| string.cpp:334:18:334:19 | ref arg s2 | string.cpp:334:30:334:31 | s2 | |
708709
| string.cpp:334:18:334:19 | s2 | string.cpp:334:21:334:25 | call to begin | TAINT |
710+
| string.cpp:334:21:334:25 | call to begin | string.cpp:334:8:334:9 | ref arg s1 | TAINT |
709711
| string.cpp:334:21:334:25 | call to begin | string.cpp:334:11:334:16 | call to append | TAINT |
712+
| string.cpp:334:33:334:35 | call to end | string.cpp:334:8:334:9 | ref arg s1 | TAINT |
710713
| string.cpp:334:33:334:35 | call to end | string.cpp:334:11:334:16 | call to append | TAINT |
714+
| string.cpp:338:8:338:9 | ref arg s3 | string.cpp:339:8:339:9 | s3 | |
711715
| string.cpp:338:8:338:9 | s3 | string.cpp:338:11:338:16 | call to append | TAINT |
712716
| string.cpp:338:18:338:19 | ref arg s4 | string.cpp:338:30:338:31 | s4 | |
713717
| string.cpp:338:18:338:19 | s4 | string.cpp:338:21:338:25 | call to begin | TAINT |
718+
| string.cpp:338:21:338:25 | call to begin | string.cpp:338:8:338:9 | ref arg s3 | TAINT |
714719
| string.cpp:338:21:338:25 | call to begin | string.cpp:338:11:338:16 | call to append | TAINT |
720+
| string.cpp:338:33:338:35 | call to end | string.cpp:338:8:338:9 | ref arg s3 | TAINT |
715721
| string.cpp:338:33:338:35 | call to end | string.cpp:338:11:338:16 | call to append | TAINT |
716722
| string.cpp:344:18:344:24 | hello | string.cpp:344:18:344:25 | call to basic_string | TAINT |
717723
| string.cpp:344:18:344:25 | call to basic_string | string.cpp:347:28:347:29 | s1 | |

cpp/ql/test/library-tests/dataflow/taint-tests/stl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ namespace std
7272
basic_string& append(const charT* s);
7373
basic_string& append(size_type n, charT c);
7474
template<class InputIterator>
75-
constexpr basic_string& append(InputIterator first, InputIterator last);
75+
/* constexpr */ basic_string& append(InputIterator first, InputIterator last);
7676
basic_string& assign(const basic_string& str);
7777
basic_string& assign(size_type n, charT c);
7878
basic_string& insert(size_type pos, const basic_string& str);

cpp/ql/test/library-tests/dataflow/taint-tests/taint.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
| string.cpp:311:9:311:12 | call to data | string.cpp:308:16:308:21 | call to source |
9494
| string.cpp:322:9:322:14 | call to substr | string.cpp:319:16:319:21 | call to source |
9595
| string.cpp:334:11:334:16 | call to append | string.cpp:329:18:329:23 | call to source |
96+
| string.cpp:335:8:335:9 | s1 | string.cpp:329:18:329:23 | call to source |
9697
| string.cpp:353:8:353:8 | call to operator* | string.cpp:345:18:345:23 | call to source |
9798
| string.cpp:354:13:354:13 | call to operator[] | string.cpp:345:18:345:23 | call to source |
9899
| string.cpp:367:8:367:8 | call to operator* | string.cpp:360:18:360:23 | call to source |

cpp/ql/test/library-tests/dataflow/taint-tests/test_diff.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
| string.cpp:311:9:311:12 | string.cpp:308:16:308:21 | AST only |
9191
| string.cpp:322:9:322:14 | string.cpp:319:16:319:21 | AST only |
9292
| string.cpp:334:11:334:16 | string.cpp:329:18:329:23 | AST only |
93+
| string.cpp:335:8:335:9 | string.cpp:329:18:329:23 | AST only |
9394
| string.cpp:353:8:353:8 | string.cpp:345:18:345:23 | AST only |
9495
| string.cpp:354:13:354:13 | string.cpp:345:18:345:23 | AST only |
9596
| string.cpp:367:8:367:8 | string.cpp:360:18:360:23 | AST only |

0 commit comments

Comments
 (0)