Excluding terms

To exclude a term from search results, prepend the - character to the term you want to exclude. For example, the following search returns all functions with the term main, but excludes matches found in C++ files.

function:main -lang:cpp

For more information see Additional syntax options in the reference documentation.