mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
C++: Autoformat tests.
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
import cpp
|
||||
|
||||
from AttributeFormattingFunction f
|
||||
select
|
||||
f,
|
||||
f.getFormatParameterIndex(),
|
||||
concat(f.getDefaultCharType().toString(), ", "),
|
||||
concat(f.getWideCharType().toString(), ", "),
|
||||
concat(f.getNonDefaultCharType().toString(), ", ")
|
||||
|
||||
select f, f.getFormatParameterIndex(), concat(f.getDefaultCharType().toString(), ", "),
|
||||
concat(f.getWideCharType().toString(), ", "), concat(f.getNonDefaultCharType().toString(), ", ")
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import cpp
|
||||
|
||||
from FormatAttribute fa
|
||||
select
|
||||
fa,
|
||||
fa.getArchetype(),
|
||||
concat(fa.getFormatIndex().toString(), ", "),
|
||||
select fa, fa.getArchetype(), concat(fa.getFormatIndex().toString(), ", "),
|
||||
concat(fa.getFirstFormatArgIndex().toString(), ", ")
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
import semmle.code.cpp.commons.Printf
|
||||
|
||||
from FormatLiteral fl, int i
|
||||
select
|
||||
fl,
|
||||
i,
|
||||
concat(fl.getParameterField(i).toString(), ", "),
|
||||
fl.getConversionChar(i),
|
||||
fl.getLength(i),
|
||||
concat(fl.getConversionType(i).getLocation().toString(), ", "),
|
||||
concat(fl.getConversionType(i).toString(), ", ")
|
||||
select fl, i, concat(fl.getParameterField(i).toString(), ", "), fl.getConversionChar(i),
|
||||
fl.getLength(i), concat(fl.getConversionType(i).getLocation().toString(), ", "),
|
||||
concat(fl.getConversionType(i).toString(), ", ")
|
||||
|
||||
Reference in New Issue
Block a user