# Wcontext-limit, Qcontext-limit

Set the maximum number of template instantiation contexts shown in diagnostic.

## Syntax

Linux and macOS: | -Wcontext-limit=n

Windows: | /Qcontext-limit:n

## Arguments

n | Number of template instantiation contexts.

## Default

OFF |

## Description

Set maximum number of template instantiation contexts shown in diagnostic.

## IDE Equivalent

None

## Alternate Options

None

Parent topic: Compiler Diagnostic Options