A bit late to the party but I guess I could provide a general piecewise solution from where Qwerty left off.
From Qwerty you would end up with $\arctan(\tan(x/2+\pi/4))$, but you go further and break down this expression into a piecewise definition for all $x\in\mathbb{R}$.
Recall that $\tan(\theta)$ is invertible on the interval $-\pi/2\lt \theta\lt\pi/2$ so for those values we have $\arctan(\tan(\theta))=\theta$.
Notice that since the interval $(-\pi/2,\pi/2)$ is of length $\pi$, we can reach every other input by shifting the open interval $(-\pi/2,\pi/2)$ by some integer multiple of $\pi$. But given that $\tan(\theta)$ is periodic on $\pi$ (which you can confirm with the formula for $\tan(a+b)$), then $\arctan(\tan(\theta))$ also has a period of $\pi$, therefore the outputs repeat so the graph of $\arctan(\tan(\theta))$ is the line segment of $y=\theta$ that goes from the points $(-\pi/2,-\pi/2)$ to $(\pi/2,\pi/2)$ shifted laterally by $\pi k$ units for $k\in\mathbb{Z}$.
This can be summarized as follows
$$\arctan(\tan(\theta))=\left\{\theta-\pi k: -\frac{\pi}{2}+\pi k\lt \theta\lt\frac{\pi}{2}+\pi k\space, k\in\mathbb{Z}\right\}$$
Replacing $\theta$ with $x/2+\pi/4$ gives the graph $y=x/2+\pi/4-\pi k$ for $k\in\mathbb{Z}$ over the interval $-\pi/2+\pi k\lt x/2+\pi/4\lt\pi/2+\pi k$, which in turn solves to $-3\pi/2+2\pi k\lt x\lt\pi/2+2\pi k$.
So the piecewise definition of $\arctan(\sec(x)+\tan(x))$ becomes
$$\arctan(\sec(x)+\tan(x))=\left\{\frac{x}{2}+\frac{\pi}{4}-\pi k:-\frac{3\pi}{2}+2\pi k\lt x\lt\frac{\pi}{2}+2\pi k\space, k\in\mathbb{Z}\right\}\space (1)$$
so the indefinite integral evaluates to
$$\int\arctan(\sec(x)+\tan(x))dx=\left\{\frac{1}{4}x^2+\frac{1}{4}\pi(1-4k)x+C:-\frac{3\pi}{2}+2\pi k\lt x\lt\frac{\pi}{2}+2\pi k\space, k\in\mathbb{Z}\right\}$$
Or you can use the expression proved in previous answers using IBP and then substitute $(1)$ in place of $\arctan(\sec(x)+\tan(x))$ and you would obtain the exact same answer up to a constant.